1#ifndef NET_I_LISTENER_SOCKET_H
2#define NET_I_LISTENER_SOCKET_H
25 virtual bool open(
int port) = 0;
Server-side socket: binds a port and produces per-client connections.
Definition IListenerSocket.h:16
virtual ~IListenerSocket()=default
virtual bool open(int port)=0
Bind and start listening on the given port.
virtual void close()=0
Close the listening socket.
virtual std::unique_ptr< IClientConnection > acceptClient()=0
Block until a new client connects, then return a connection object.