AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ATcpServerSocket Class Reference

TCP server socket. More...

#include <AUI/Network/ATcpServerSocket.h>

Public Member Functions

 ATcpServerSocket (uint16_t serverPort)
 
_< ATcpSocketaccept ()
 
- Public Member Functions inherited from AAbstractSocket
 AAbstractSocket (const AAbstractSocket &)=delete
 
void close ()
 
void setTimeout (int secs)
 
const AInet4AddressgetAddress () const
 

Protected Member Functions

int createSocket () override
 Creates socket handle.
 
- Protected Member Functions inherited from AAbstractSocket
int getHandle () const
 
 AAbstractSocket (int handle, const AInet4Address &selfAddress)
 
void init ()
 Initialise socket.
 
void bind (uint16_t bindingPort)
 Binds socket for port. Used for ATcpServerSocket and AUdpSocket.
 

Additional Inherited Members

- Static Protected Member Functions inherited from AAbstractSocket
static AString getErrorString ()
 
static void handleError (const AString &message, int code)
 

Detailed Description

TCP server socket.

Member Function Documentation

◆ accept()

_< ATcpSocket > ATcpServerSocket::accept ( )

Blocks the thread until next connection.

Returns
new connection

◆ createSocket()

int ATcpServerSocket::createSocket ( )
overrideprotectedvirtual

Creates socket handle.

Implements AAbstractSocket.


The documentation for this class was generated from the following files:
Inheritance diagram for ATcpServerSocket:
Collaboration diagram for ATcpServerSocket: