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