| 158 | } |
| 159 | |
| 160 | TcpServer::TcpServer(HostAddressWithPort const& address) : m_hostAddress(address) { |
| 161 | m_hostAddress = address; |
| 162 | m_listenSocket = TcpSocket::listen(address); |
| 163 | m_listenSocket->setNonBlocking(true); |
| 164 | Logger::debug("TcpServer listening on: {}", address); |
| 165 | } |
| 166 | |
| 167 | TcpServer::TcpServer(uint16_t port) : TcpServer(HostAddressWithPort("*", port)) {} |
| 168 |
nothing calls this directly
no test coverage detected