Revision 58
got rid of some TODO's
ColonetServer.cpp | ||
---|---|---|
109 | 109 |
int accept_socket = 0; |
110 | 110 |
struct sockaddr_in client_addr; |
111 | 111 |
socklen_t client_addr_size = sizeof(client_addr); |
112 |
struct timeval select_timeout; |
|
113 |
|
|
114 |
memset(&select_timeout, 0, sizeof(select_timeout)); |
|
115 | 112 |
|
116 | 113 |
log_message("Server initialized. About to start listening for connections"); |
117 | 114 |
|
118 | 115 |
while(1) { |
119 |
connection_pool.perform_select(listen_socket, &select_timeout);
|
|
116 |
connection_pool.perform_select(listen_socket); |
|
120 | 117 |
|
121 | 118 |
//either no descriptors are ready or there was an error |
122 | 119 |
//TODO: check for specific errors |
Also available in: Unified diff