settimeout(timeout)
| 275 | |
| 276 | // settimeout(timeout) |
| 277 | static int l_socket_settimeout(lua_State *L) { |
| 278 | p_tcp self = (p_tcp) checktype(L, 1, SOCKET_ANY); |
| 279 | int timeout = luaL_checknumber(L, 2); |
| 280 | self->timeout = timeout; |
| 281 | LUA_SUCCESS_RETURN(L); |
| 282 | } |
| 283 | |
| 284 | // table getsockinfo() |
| 285 | static int l_socket_getsockinfo(lua_State *L) { |
nothing calls this directly
no test coverage detected