MCPcopy Create free account
hub / github.com/ddnet/ddnet / priv_net_close_socket

Function priv_net_close_socket

src/base/net.cpp:779–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779static void priv_net_close_socket(int sock)
780{
781#if defined(CONF_FAMILY_WINDOWS)
782 dbg_assert(closesocket(sock) == 0, "closesocket failure (%s)", net_error_message().c_str());
783#else
784 dbg_assert(close(sock) == 0, "close failure (%s)", net_error_message().c_str());
785#endif
786}
787
788static void priv_net_close_all_sockets(NETSOCKET sock)
789{

Callers 2

priv_net_create_socketFunction · 0.85

Calls 1

net_error_messageFunction · 0.85

Tested by

no test coverage detected