Revision 59
got rid of a few more TODO's
trunk/code/projects/colonet/ColonetServer/ConnectionPool.cpp | ||
---|---|---|
320 | 320 |
|
321 | 321 |
number_clients_ready = select(max_file_descriptor+1, &(read_set), &(write_set), NULL, &select_timeout); |
322 | 322 |
|
323 |
if (number_clients_ready < 0) { |
|
324 |
perror(__FUNCTION__); |
|
325 |
} |
|
326 |
|
|
323 | 327 |
return 0; |
324 | 328 |
} |
325 | 329 |
|
trunk/code/projects/colonet/ColonetServer/ColonetServer.cpp | ||
---|---|---|
116 | 116 |
connection_pool.perform_select(listen_socket); |
117 | 117 |
|
118 | 118 |
//either no descriptors are ready or there was an error |
119 |
//TODO: check for specific errors |
|
120 | 119 |
if (connection_pool.get_number_clients_ready() <= 0) { |
121 | 120 |
continue; |
122 | 121 |
} |
Also available in: Unified diff