MCPcopy Create free account
hub / github.com/Tencent/UnLua / socket_destroy

Function socket_destroy

Plugins/UnLuaExtensions/LuaSocket/Source/src/usocket.cpp:97–102  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Close and inutilize socket \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

95* Close and inutilize socket
96\*-------------------------------------------------------------------------*/
97void socket_destroy(p_socket ps) {
98 if (*ps != SOCKET_INVALID) {
99 close(*ps);
100 *ps = SOCKET_INVALID;
101 }
102}
103
104/*-------------------------------------------------------------------------*\
105* Select with timeout control

Callers 12

inet_tryconnectFunction · 0.70
inet_trybindFunction · 0.70
meth_closeFunction · 0.70
unixdgram_trybindFunction · 0.70
unixdgram_tryconnectFunction · 0.70
meth_closeFunction · 0.70
meth_closeFunction · 0.70
global_connectFunction · 0.70
meth_closeFunction · 0.70
unixstream_trybindFunction · 0.70
unixstream_tryconnectFunction · 0.70
meth_closeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected