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

Function opt_setboolean

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

Source from the content-addressed store, hash-verified

432}
433
434static int opt_setboolean(lua_State *L, p_socket ps, int level, int name)
435{
436 int val = auxiliar_checkboolean(L, 3); /* obj, name, bool */
437 return opt_set(L, ps, level, name, (char *) &val, sizeof(val));
438}
439
440static int opt_getint(lua_State *L, p_socket ps, int level, int name)
441{

Callers 9

opt_set_reuseaddrFunction · 0.85
opt_set_reuseportFunction · 0.85
opt_set_tcp_nodelayFunction · 0.85
opt_set_keepaliveFunction · 0.85
opt_set_dontrouteFunction · 0.85
opt_set_broadcastFunction · 0.85
opt_set_ip6_v6onlyFunction · 0.85

Calls 2

auxiliar_checkbooleanFunction · 0.85
opt_setFunction · 0.85

Tested by

no test coverage detected