From 76002325027250b250c68fc09c80bf63e9e974c7 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 22 May 2024 06:10:34 -0700 Subject: [PATCH] TC socket waiting messages --- reflector/TCSocket.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/reflector/TCSocket.cpp b/reflector/TCSocket.cpp index 9d55e7a..fcfa56b 100644 --- a/reflector/TCSocket.cpp +++ b/reflector/TCSocket.cpp @@ -271,6 +271,21 @@ bool CTCServer::Accept() return true; } + std::string wmod; + for (const char c : m_Modules) + { + if (GetFD(c) < 0) + wmod.append(1, c); + } + if (wmod.size() > 1) + { + std::cout << "Waiting for transcoder connections for modules " << wmod << "..." << std::endl; + } + else + { + std::cout << "Waiting for transcoder connection for module " << wmod << "..." << std::endl; + } + while (AnyAreClosed()) { if (acceptone(fd)) @@ -383,7 +398,7 @@ bool CTCClient::Connect(char module) { if (ECONNREFUSED == errno) { - if (0 == ++count % 100) std::cout << "Connection refused! Restart the system." << std::endl; + if (0 == ++count % 100) std::cout << "Connection refused! Restart the reflector." << std::endl; std::this_thread::sleep_for(std::chrono::milliseconds(100)); } else