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

Function meth_close

Plugins/UnLuaExtensions/LuaSocket/Source/src/unixdgram.cpp:355–361  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

353* Closes socket used by object
354\*-------------------------------------------------------------------------*/
355static int meth_close(lua_State *L)
356{
357 p_unix un = (p_unix) auxiliar_checkgroup(L, "unixdgram{any}", 1);
358 socket_destroy(&un->sock);
359 lua_pushnumber(L, 1);
360 return 1;
361}
362
363/*-------------------------------------------------------------------------*\
364* Just call tm methods

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