AUI Framework
develop
Cross-platform base for C++ UI apps
|
Base class for all sockets. More...
#include <AUI/Network/AAbstractSocket.h>
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) |
Binds socket for port. Used for ATcpServerSocket and AUdpSocket. | |
virtual int | createSocket ()=0 |
Creates socket handle. | |
Static Protected Member Functions | |
static AString | getErrorString () |
static void | handleError (const AString &message, int code) |
Base class for all sockets.
|
protected |
Binds socket for port. Used for ATcpServerSocket and AUdpSocket.
bindingPort | port |
|
protectedpure virtual |
Creates socket handle.
Implemented in ATcpServerSocket, ATcpSocket, and AUdpSocket.