MCPcopy Create free account
hub / github.com/Tencent/UnLua / opt_getint

Function opt_getint

Plugins/UnLuaExtensions/LuaSocket/Source/src/options.cpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static int opt_getint(lua_State *L, p_socket ps, int level, int name)
441{
442 int val = 0;
443 int len = sizeof(val);
444 int err = opt_get(L, ps, level, name, (char *) &val, &len);
445 if (err)
446 return err;
447 lua_pushnumber(L, val);
448 return 1;
449}
450
451static int opt_setint(lua_State *L, p_socket ps, int level, int name)
452{

Callers 7

opt_get_tcp_keepidleFunction · 0.85
opt_get_tcp_keepcntFunction · 0.85
opt_get_tcp_keepintvlFunction · 0.85
opt_get_recv_buf_sizeFunction · 0.85
opt_get_send_buf_sizeFunction · 0.85
opt_get_ip6_unicast_hopsFunction · 0.85

Calls 2

opt_getFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected