-------------------------------------------------------------------------*\ * Closes socket used by object \*-------------------------------------------------------------------------*/
| 290 | * Closes socket used by object |
| 291 | \*-------------------------------------------------------------------------*/ |
| 292 | static int meth_close(lua_State *L) |
| 293 | { |
| 294 | p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); |
| 295 | socket_destroy(&tcp->sock); |
| 296 | lua_pushnumber(L, 1); |
| 297 | return 1; |
| 298 | } |
| 299 | |
| 300 | /*-------------------------------------------------------------------------*\ |
| 301 | * Returns family as string |
nothing calls this directly
no test coverage detected