-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/
| 277 | * Closes socket used by object |
| 278 | \*-------------------------------------------------------------------------*/ |
| 279 | static int meth_close(lua_State *L) |
| 280 | { |
| 281 | p_unix un = (p_unix) auxiliar_checkgroup(L, "unixstream{any}", 1); |
| 282 | socket_destroy(&un->sock); |
| 283 | lua_pushnumber(L, 1); |
| 284 | return 1; |
| 285 | } |
| 286 | |
| 287 | /*-------------------------------------------------------------------------*\ |
| 288 | * Puts the sockt in listen mode |
nothing calls this directly
no test coverage detected