MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / StartupHookMode

Method StartupHookMode

emmy_debugger/src/emmy_facade.cpp:374–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void EmmyFacade::StartupHookMode(int port) {
375 Destroy();
376
377 // 1024 - 65535
378 while (port > 0xffff) port -= 0xffff;
379 while (port < 0x400) port += 0x400;
380
381 const auto s = std::make_shared<SocketServerTransporter>();
382 std::string err;
383 const auto suc = s->Listen("localhost", port, err);
384 if (suc) {
385 transporter = s;
386 // transporter->SetHandler(shared_from_this());
387 }
388}
389
390void EmmyFacade::Attach(lua_State *L) {
391 if (!this->transporter->IsConnected())

Callers 1

StartupHookModeFunction · 0.80

Calls 1

ListenMethod · 0.80

Tested by

no test coverage detected