35 #define BACKLOG_SIZE 1000
60 USERNAME_NOT_EXIST = 0x4,
61 USER_ALREADY_LOGGED = 0x5,
62 USERS_LOGGED_REQUEST = 0x6,
63 USERS_LOGGED_RESPONSE = 0x7,
65 UKNOWN_MSG_TYPE = 0xFE,
126 unsigned long int d_total_msgs_received;
127 unsigned long int d_total_bytes_sent;
128 unsigned long int d_total_bytes_received;
134 pthread_mutex_t d_print_mutex;
135 pthread_mutex_t d_counters_mutex;
136 pthread_mutex_t d_active_connections_mutex;
147 chatserver(
int port,
bool automatic_server_discovery);
286 size_t msg_content_len);