4 #include "network_condition_variable.h"
18 static std::shared_ptr<TCPListen>
listen(
const SocketName &endpoint,
int backlog = 5,
bool reuse_address =
true);
21 virtual void close() = 0;
Socket name; container class for an IP address and port.
Definition: socket_name.h:39
Base class for all classes that generate network events.
Definition: network_condition_variable.h:14
virtual std::shared_ptr< TCPConnection > accept(SocketName &end_point)=0
Accept an incoming connection.
virtual void close()=0
Stops listening for incoming messages and closes the socket.
static std::shared_ptr< TCPListen > listen(const SocketName &endpoint, int backlog=5, bool reuse_address=true)
Create a listening socket for the specified end point.
Listens for incoming TCP/IP socket connections.
Definition: tcp_listen.h:14
std::shared_ptr< TCPListen > TCPListenPtr
Definition: tcp_listen.h:29
Definition: Application/application.h:35