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