public

Inheritance Graph

graph BT
	TCPServer
	click TCPServer "classUtil_1_1Network_1_1TCPServer"

Description

TCP Server which creates TCPConnections

Public Static Functions

   
   
TCPServer * create(uint16_t port)

Public Functions

   
   
  ~TCPServer()
   
bool isOpen() const
   
bool isClosed() const
   
void close()
   
Reference < TCPConnection > getIncomingConnection()

Documentation

function
Util::Network::TCPServer::create

public static
     
     
TCPServer * create( uint16_t port )

( Factory ) Try to create a TCPServer listening on the given port. Throws an exception, if the port can not be opened.

Defined in Util/Network/NetworkTCP.h:124


function
Util::Network::TCPServer::~TCPServer

public virtual
   
   
~TCPServer( )

Defined in Util/Network/NetworkTCP.h:126


function
Util::Network::TCPServer::isOpen

public const inline
   
   
bool isOpen( ) const

Defined in Util/Network/NetworkTCP.h:128


function
Util::Network::TCPServer::isClosed

public const inline
   
   
bool isClosed( ) const

Defined in Util/Network/NetworkTCP.h:129


function
Util::Network::TCPServer::close

public
   
   
void close( )

Stops the server. New incoming connections are closed, old connections persist.

Defined in Util/Network/NetworkTCP.h:133


function
Util::Network::TCPServer::getIncomingConnection

public
   
   
Reference < TCPConnection > getIncomingConnection( )

Returns a new Connection or nullptr if there is none. Each incoming connection is only reported once.

Defined in Util/Network/NetworkTCP.h:137