MCPcopy Create free account
hub / github.com/defold/defold / meth_close

Function meth_close

engine/script/src/luasocket/unix.c:269–275  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

267* Closes socket used by object
268\*-------------------------------------------------------------------------*/
269static int meth_close(lua_State *L)
270{
271 p_unix un = (p_unix) auxiliar_checkgroup(L, "unix{any}", 1);
272 socket_destroy(&un->sock);
273 lua_pushnumber(L, 1);
274 return 1;
275}
276
277/*-------------------------------------------------------------------------*\
278* Puts the sockt in listen mode

Callers

nothing calls this directly

Calls 3

auxiliar_checkgroupFunction · 0.85
lua_pushnumberFunction · 0.85
socket_destroyFunction · 0.70

Tested by

no test coverage detected