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

Function CloseSocket

source/src/ports/generic_networkhandler.c:998–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996
997
998void CloseSocket(const int socket_handle) {
999 OPENER_TRACE_INFO("networkhandler: closing socket %d\n", socket_handle);
1000
1001 if (kEipInvalidSocket != socket_handle) {
1002 FD_CLR(socket_handle, &master_socket);
1003 CloseSocketPlatform(socket_handle);
1004 }
1005 OPENER_TRACE_INFO("networkhandler: closing socket done %d\n", socket_handle);
1006}
1007
1008int GetMaxSocket(int socket1,
1009 int socket2,

Callers 6

CloseUdpSocketFunction · 0.85
CloseTcpSocketFunction · 0.85
NetworkHandlerFinishFunction · 0.85
CreateUdpSocketFunction · 0.85
ConfigureMacAddressFunction · 0.85

Calls 1

CloseSocketPlatformFunction · 0.50

Tested by

no test coverage detected