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

Function opt_set

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

Source from the content-addressed store, hash-verified

409}
410
411static
412int opt_set(lua_State *L, p_socket ps, int level, int name, void *val, int len)
413{
414 if (setsockopt(*ps, level, name, (char *) val, len) < 0) {
415 lua_pushnil(L);
416 lua_pushstring(L, "setsockopt failed");
417 return 2;
418 }
419 lua_pushnumber(L, 1);
420 return 1;
421}
422
423static int opt_getboolean(lua_State *L, p_socket ps, int level, int name)
424{

Callers 6

opt_set_lingerFunction · 0.85
opt_set_ip_multicast_ifFunction · 0.85
opt_setmembershipFunction · 0.85
opt_ip6_setmembershipFunction · 0.85
opt_setbooleanFunction · 0.85
opt_setintFunction · 0.85

Calls 3

lua_pushnilFunction · 0.85
lua_pushstringFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected