29#include <sptk5/net/ServerConnection.h>
57 "TCPServerConnection", connectionFunction)
virtual void attach(SOCKET socketHandle, bool accept)
Definition: ServerConnection.h:56
void setSocket(const STCPSocket &socket)
TCPServer & server() const
TCPSocket & socket() const
Abstract TCP server connection thread.
Definition: TCPServerConnection.h:46
TCPServerConnection(TCPServer &server, SOCKET connectionSocket, const sockaddr_in *connectionAddress, const ServerConnection::Function &connectionFunction)
Constructor.
Definition: TCPServerConnection.h:55
void terminate() override
Definition: TCPServerConnection.h:66
Definition: TCPServer.h:133
void close() noexcept override