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

Function EncapsulationShutDown

source/src/enet_encap/encap.c:846–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void EncapsulationShutDown(void) {
847 OPENER_TRACE_INFO("encap.c: Encapsulation shutdown\n");
848 for (size_t i = 0; i < OPENER_NUMBER_OF_SUPPORTED_SESSIONS; ++i) {
849 if (kEipInvalidSocket != g_registered_sessions[i]) {
850 CloseTcpSocket(g_registered_sessions[i]);
851 g_registered_sessions[i] = kEipInvalidSocket;
852 }
853 }
854}
855
856void ManageEncapsulationMessages(const MilliSeconds elapsed_time) {
857 for (size_t i = 0; i < ENCAP_NUMBER_OF_SUPPORTED_DELAYED_ENCAP_MESSAGES;

Callers 1

ShutdownCipStackFunction · 0.85

Calls 1

CloseTcpSocketFunction · 0.85

Tested by

no test coverage detected