-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/
| 119 | * Closes socket used by object |
| 120 | \*-------------------------------------------------------------------------*/ |
| 121 | static int meth_close(lua_State *L) |
| 122 | { |
| 123 | p_unix un = (p_unix) auxiliar_checkgroup(L, "serial{any}", 1); |
| 124 | socket_destroy(&un->sock); |
| 125 | lua_pushnumber(L, 1); |
| 126 | return 1; |
| 127 | } |
| 128 | |
| 129 | |
| 130 | /*-------------------------------------------------------------------------*\ |
nothing calls this directly
no test coverage detected