emmy.tcpConnect(host: string, port: int): bool
| 35 | |
| 36 | // emmy.tcpConnect(host: string, port: int): bool |
| 37 | int tcpConnect(lua_State* L) |
| 38 | { |
| 39 | luaL_checkstring(L, 1); |
| 40 | std::string err; |
| 41 | const auto host = lua_tostring(L, 1); |
| 42 | luaL_checknumber(L, 2); |
| 43 | const auto port = lua_tointeger(L, 2); |
| 44 | const auto suc = EmmyFacade::Get().TcpConnect(L, host, static_cast<int>(port), err); |
| 45 | lua_pushboolean(L, suc); |
| 46 | if (suc) return 1; |
| 47 | lua_pushstring(L, err.c_str()); |
| 48 | return 2; |
| 49 | } |
| 50 | |
| 51 | // emmy.pipeListen(pipeName: string): bool |
| 52 | int pipeListen(lua_State* L) |
nothing calls this directly
no test coverage detected