uicore::TCPListen Class Referenceabstract

Listens for incoming TCP/IP socket connections. More...

#include <tcp_listen.h>

+ Inheritance diagram for uicore::TCPListen:

Public Member Functions

virtual std::shared_ptr< TCPConnectionaccept (SocketName &end_point)=0
 Accept an incoming connection. More...
 
virtual void close ()=0
 Stops listening for incoming messages and closes the socket. More...
 

Static Public Member Functions

static std::shared_ptr< TCPListenlisten (const SocketName &endpoint, int backlog=5, bool reuse_address=true)
 Create a listening socket for the specified end point. More...
 

Additional Inherited Members

- Protected Member Functions inherited from uicore::NetworkEvent
virtual SocketHandle * socket_handle ()=0
 

Detailed Description

Listens for incoming TCP/IP socket connections.

Member Function Documentation

virtual std::shared_ptr<TCPConnection> uicore::TCPListen::accept ( SocketName end_point)
pure virtual

Accept an incoming connection.

Parameters
end_pointSocket name of the accepted peer
Returns
A TcpConnection for the accepted connection, or null if no incoming connections are available
virtual void uicore::TCPListen::close ( )
pure virtual

Stops listening for incoming messages and closes the socket.

static std::shared_ptr<TCPListen> uicore::TCPListen::listen ( const SocketName endpoint,
int  backlog = 5,
bool  reuse_address = true 
)
static

Create a listening socket for the specified end point.


The documentation for this class was generated from the following file: