MCPcopy Create free account
hub / github.com/crossuo/crossuo / tcp_close

Function tcp_close

src/Sockets.cpp:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void tcp_close(tcp_socket socket)
194{
195 auto h = socket_fd(socket);
196 closesocket(h);
197 delete (int *)socket;
198 socket = nullptr;
199}
200
201#if USE_PING
202icmp_handle icmp_open()

Callers 2

DisconnectMethod · 0.85
ConnectMethod · 0.85

Calls 1

socket_fdFunction · 0.85

Tested by

no test coverage detected