| 236 | } |
| 237 | |
| 238 | int 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 | |
| 250 | int lualib_net_start_io_loop_impl(lua_State *L, void *server) |
| 251 | { |
nothing calls this directly
no test coverage detected