AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Base class for all sockets. More...
Base class for all sockets.
Public Member Functions | |
AAbstractSocket (const AAbstractSocket &)=delete | |
void | close () |
void | setTimeout (int secs) |
const AInet4Address & | getAddress () const |
Protected Member Functions | |
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... | |
virtual int | createSocket ()=0 |
Create socket handle. Use ::socket() More... | |
Static Protected Member Functions | |
static AString | getErrorString () |
static void | handleError (const AString &message, int code) |
|
protected |
Bind socket for port. Used for ATcpServerSocket and AUdpSocket.
bindingPort | port |
|
protectedpure virtual |
Create socket handle. Use ::socket()
Implemented in ATcpServerSocket, ATcpSocket, and AUdpSocket.
#include <AUI/Network/AAbstractSocket.h>