MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lualib_net_start_io_loop

Function lualib_net_start_io_loop

src/Chain/libraries/glua/lnetlib.cpp:238–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int lualib_net_start_io_loop(lua_State *L)
239{
240 if (lua_gettop(L) < 1 || !lua_islightuserdata(L, 1))
241 {
242 global_glua_chain_api->throw_exception(L, THINKYOUNG_API_SIMPLE_ERROR,
243 "net.start_io_loop need arguments (server: TcpSocketServer)");
244 return 0;
245 }
246 NetServerInfo *server = (NetServerInfo*)lua_touserdata(L, 1);
247 return lualib_net_start_io_loop_impl(L, (void *)server);
248}
249
250int lualib_net_start_io_loop_impl(lua_State *L, void *server)
251{

Callers

nothing calls this directly

Calls 4

lua_gettopFunction · 0.85
lua_touserdataFunction · 0.85
throw_exceptionMethod · 0.45

Tested by

no test coverage detected