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

Function meth_close

Plugins/UnLuaExtensions/LuaSocket/Source/src/udp.cpp:424–429  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

422* Closes socket used by object
423\*-------------------------------------------------------------------------*/
424static int meth_close(lua_State *L) {
425 p_udp udp = (p_udp) auxiliar_checkgroup(L, "udp{any}", 1);
426 socket_destroy(&udp->sock);
427 lua_pushnumber(L, 1);
428 return 1;
429}
430
431/*-------------------------------------------------------------------------*\
432* Turns a master object into a server object

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