--- nono/debugger/console_tcp.cpp 2026/04/29 17:04:30 1.1.1.1 +++ nono/debugger/console_tcp.cpp 2026/04/29 17:04:33 1.1.1.2 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2019 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "header.h" @@ -54,7 +55,7 @@ ConsoleTCP::Init() hints.ai_flags = AI_PASSIVE; const char *host = "::1"; - const ConfigItem& item = gConfig->Get("debugger-port"); + const ConfigItem& item = gConfig->Find("debugger-port"); const std::string& port = item.AsString(); int portnum = atoi(port.c_str()); if (portnum < 0 || portnum > 65535) { @@ -126,10 +127,10 @@ ConsoleTCP::Init() return true; } +// 受け付ける bool -ConsoleTCP::Open() +ConsoleTCP::Accept() { - // 待ち受け for (;;) { sock = accept(ls, ai->ai_addr, &ai->ai_addrlen); if (sock == -1) {