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

Function CloseSessionBySessionHandle

source/src/enet_encap/encap.c:812–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810}
811
812void CloseSessionBySessionHandle(
813 const CipConnectionObject *const connection_object) {
814 OPENER_TRACE_INFO("encap.c: Close session by handle\n");
815 size_t session_handle = connection_object->associated_encapsulation_session;
816 CloseTcpSocket(g_registered_sessions[session_handle - 1]);
817 g_registered_sessions[session_handle - 1] = kEipInvalidSocket;
818 OPENER_TRACE_INFO("encap.c: Close session by handle done\n");
819}
820
821void CloseSession(int socket) {
822 OPENER_TRACE_INFO("encap.c: Close session\n");

Callers

nothing calls this directly

Calls 1

CloseTcpSocketFunction · 0.85

Tested by

no test coverage detected