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

Function GetMaxSocket

source/src/ports/generic_networkhandler.c:1008–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006}
1007
1008int GetMaxSocket(int socket1,
1009 int socket2,
1010 int socket3,
1011 int socket4) {
1012 if ( (socket1 > socket2) && (socket1 > socket3) && (socket1 > socket4) ) {
1013 return socket1;
1014 }
1015
1016 if ( (socket2 > socket1) && (socket2 > socket3) && (socket2 > socket4) ) {
1017 return socket2;
1018 }
1019
1020 if ( (socket3 > socket1) && (socket3 > socket2) && (socket3 > socket4) ) {
1021 return socket3;
1022 }
1023
1024 return socket4;
1025}
1026
1027void CheckEncapsulationInactivity(int socket_handle) {
1028 if (0 < g_encapsulation_inactivity_timeout) { //*< Encapsulation inactivity timeout is enabled

Callers 1

NetworkHandlerInitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected