MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / TcpServer

Method TcpServer

source/core/StarTcp.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160TcpServer::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
167TcpServer::TcpServer(uint16_t port) : TcpServer(HostAddressWithPort("*", port)) {}
168

Callers

nothing calls this directly

Calls 2

HostAddressWithPortClass · 0.85
setNonBlockingMethod · 0.80

Tested by

no test coverage detected