NAME
gc_conn_stats
- Codes for connection statistics.
SYNOPSIS
#include <game-carrier/common.h>
enum gc_conn_stats {
GC_CONN_STAT_RESERVED = 0,
GC_CONN_STAT_MSG_PER_SECOND,
GC_CONN_STAT_BYTES_PER_SECOND,
GC_CONN_STAT_PER_SECOND_COUNT,
GC_CONN_STAT_MAX_MSG_SIZE = GC_CONN_STAT_PER_SECOND_COUNT,
GC_CONN_STAT_OUTPUT_QUEUE_SIZE,
GC_CONN_STAT_COUNT,
};
DESCRIPTION
The gc_conn_stats
enum is used to identify the statistic ID.
Name | Value | Description |
---|---|---|
GC_CONN_STAT_RESERVED |
0 | For internal usage only. |
GC_CONN_STAT_MSG_PER_SECOND |
1 | Number of messages per second. Corresponds to the msg_per_second parameter in the configuration file. |
GC_CONN_STAT_BYTES_PER_SECOND |
2 | Number of received bytes per second. Corresponds to the kbytes_per_second parameter in the configuration file. |
GC_CONN_STAT_PER_SECOND_COUNT |
3 | For internal usage only. |
GC_CONN_STAT_MAX_MSG_SIZE |
3 | Maximum message size. Corresponds to the max_msg_size parameter in the configuration file. |
GC_CONN_STAT_OUTPUT_QUEUE_SIZE |
4 | Output message queue size. Corresponds to the output_queue_size parameter in the configuration file. |
GC_CONN_STAT_COUNT |
5 | A number of available statistics. |