-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/
| 422 | * Closes socket used by object |
| 423 | \*-------------------------------------------------------------------------*/ |
| 424 | static 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 |
nothing calls this directly
no test coverage detected