MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / _hx_std_socket_close

Function _hx_std_socket_close

src/hx/libs/std/Socket.cpp:209–217  ·  view source on GitHub ↗

socket_close : 'socket -> void Close a socket. Any subsequent operation on this socket will fail **/

Source from the content-addressed store, hash-verified

207 <doc>Close a socket. Any subsequent operation on this socket will fail</doc>
208**/
209void _hx_std_socket_close( Dynamic handle )
210{
211 SOCKET s = val_sock(handle);
212 POSIX_LABEL(close_again);
213 if( s != INVALID_SOCKET && closesocket(s) ) {
214 HANDLE_EINTR(close_again);
215 }
216 reset_sock(handle);
217}
218
219/**
220 socket_send_char : 'socket -> int -> void

Callers

nothing calls this directly

Calls 2

val_sockFunction · 0.85
reset_sockFunction · 0.85

Tested by

no test coverage detected