31#include <sptk5/Logger.h>
32#include <sptk5/net/ServerConnection.h>
33#include <sptk5/threads/SynchronizedQueue.h>
86 return m_listenerSocket.
host().port();
103 std::shared_ptr<TCPServer> m_server;
107 void acceptConnection(std::chrono::milliseconds timeout);
void listen(uint16_t portNumber=0)
void host(const Host &host)
Definition: TCPServerListener.h:50
TCPServerListener(TCPServer *server, uint16_t port)
String error() const
Definition: TCPServerListener.h:92
uint16_t port() const
Definition: TCPServerListener.h:84
void threadFunction() override
void terminate() override
void listen()
Definition: TCPServerListener.h:72
Definition: TCPServer.h:133
Definition: TCPSocket.h:165