MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / TCPServer

Method TCPServer

OpenHD/ohd_common/src/openhd_tcp.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include <utility>
32
33openhd::TCPServer::TCPServer(const std::string tag,
34 openhd::TCPServer::Config config, bool debug)
35 : m_config(config), m_debug(debug) {
36 m_console = openhd::log::create_or_get(tag);
37 assert(m_console);
38 m_accept_thread =
39 std::make_unique<std::thread>(&TCPServer::loop_accept, this);
40 m_console->debug("created with {}", m_config.port);
41}
42
43openhd::TCPServer::~TCPServer() {
44 // debug_if("TCPEndpoint::~TCPEndpoint() begin");

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected