Revision 79
tried to merge lib_additions again...
ConnectionPool.h | ||
---|---|---|
27 | 27 |
|
28 | 28 |
#define MAX_CONNECTIONS 250 |
29 | 29 |
#define READ_BUFFER_SIZE 1024 |
30 |
#define WRITE_BUFFER_SIZE 1024
|
|
30 |
#define WRITE_BUFFER_SIZE 4096
|
|
31 | 31 |
|
32 | 32 |
class ConnectionPool { |
33 | 33 |
|
... | ... | |
40 | 40 |
int check_clients(ColonetWireless * wireless); |
41 | 41 |
int write_to_client(int pool_index, char * message, int length); |
42 | 42 |
void set_listen_socket_in_ready_set(int listen_socket); |
43 |
int perform_select(int listen_socket, struct timeval * select_timeout);
|
|
43 |
int perform_select(int listen_socket); |
|
44 | 44 |
int is_socket_ready_to_read(int socket); |
45 | 45 |
int is_socket_ready_to_write(int socket); |
46 | 46 |
|
... | ... | |
76 | 76 |
|
77 | 77 |
int parse_command(char* command, int pool_index, ColonetWireless * wireless); |
78 | 78 |
int tokenize_command(char* command, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE]); |
79 |
int check_tokens(unsigned char* tokens, int numTokens);
|
|
79 |
int check_tokens(unsigned char* tokens, int number_tokens);
|
|
80 | 80 |
}; |
81 | 81 |
|
82 | 82 |
#endif |
Also available in: Unified diff