-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/
| 134 | * Closes socket used by object |
| 135 | \*-------------------------------------------------------------------------*/ |
| 136 | static int meth_close(lua_State *L) |
| 137 | { |
| 138 | p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); |
| 139 | socket_destroy(&un->sock); |
| 140 | lua_pushnumber(L, 1); |
| 141 | return 1; |
| 142 | } |
| 143 | |
| 144 | |
| 145 | /*-------------------------------------------------------------------------*\ |
nothing calls this directly
no test coverage detected