destroy()
| 227 | |
| 228 | // destroy() |
| 229 | static int l_socket_destroy(lua_State *L) { |
| 230 | p_tcp tcp = (p_tcp) checktype(L, 1, SOCKET_ANY); |
| 231 | const char *err = tcp_destroy(&tcp->sock); |
| 232 | LUA_CHECK_RETURN(L, err); |
| 233 | } |
| 234 | |
| 235 | // send(socket, data) |
| 236 | static int l_socket_send(lua_State *L) { |
nothing calls this directly
no test coverage detected