MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / CheckSocketSet

Function CheckSocketSet

source/src/ports/generic_networkhandler.c:278–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278EipBool8 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
292void CheckAndHandleTcpListenerSocket(void) {
293 int new_socket = kEipInvalidSocket;

Calls

no outgoing calls

Tested by

no test coverage detected