| 276 | } |
| 277 | |
| 278 | EipBool8 CheckSocketSet(int socket) { |
| 279 | EipBool8 return_value = false; |
| 280 | if ( FD_ISSET(socket, &read_socket) ) { |
| 281 | if ( FD_ISSET(socket, &master_socket) ) { |
| 282 | return_value = true; |
| 283 | } else { |
| 284 | OPENER_TRACE_INFO("socket: %d closed with pending message\n", socket); |
| 285 | } |
| 286 | FD_CLR(socket, &read_socket); |
| 287 | /* remove it from the read set so that later checks will not find it */ |
| 288 | } |
| 289 | return return_value; |
| 290 | } |
| 291 | |
| 292 | void CheckAndHandleTcpListenerSocket(void) { |
| 293 | int new_socket = kEipInvalidSocket; |
no outgoing calls
no test coverage detected