MCPcopy Create free account
hub / github.com/apache/thrift / l_socket_settimeout

Function l_socket_settimeout

lib/lua/src/luasocket.c:277–282  ·  view source on GitHub ↗

settimeout(timeout)

Source from the content-addressed store, hash-verified

275
276// settimeout(timeout)
277static 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()
285static int l_socket_getsockinfo(lua_State *L) {

Callers

nothing calls this directly

Calls 1

checktypeFunction · 0.85

Tested by

no test coverage detected