AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ATcpServerSocket Class Reference

TCP server socket. More...

Detailed Description

TCP server socket.

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
 Create socket handle. Use ::socket() More...
 
- Protected Member Functions inherited from AAbstractSocket
int getHandle () const
 
 AAbstractSocket (int handle, const AInet4Address &selfAddress)
 
void init ()
 Initialise socket.
 
void bind (uint16_t bindingPort)
 Bind socket for port. Used for ATcpServerSocket and AUdpSocket. More...
 

Additional Inherited Members

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

Member Function Documentation

◆ accept()

_< ATcpSocket > ATcpServerSocket::accept ( )

Blocks the thread until next connection.

Returns
new connection

◆ createSocket()

int ATcpServerSocket::createSocket ( )
overrideprotectedvirtual

Create socket handle. Use ::socket()

Implements AAbstractSocket.

#include <AUI/Network/ATcpServerSocket.h>


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