#include <AP_Socket.h>
Public Types | |
enum | Type { TypeUnix = PF_UNIX, TypeNet = PF_INET, TypeNone } |
Public Member Functions | |
AP_Socket | Accept (void) |
AP_Socket (const Type type, const AP_Sint32 socket) | |
AP_Socket (const Type type=TypeUnix) | |
AP_Bool | Bind (const AP_String &local) |
AP_Bool | Close (void) |
Standard POSIX socket API. | |
AP_Bool | Connect (const AP_String &target) |
AP_Bool | Listen (const AP_Uint32 connection=RAW_MAX_CONNECTIONS) |
AP_Bool | ReadyForRead (const AP_Uint32 timeout) |
AP_Bool | ReadyForWrite (const AP_Uint32 timeout) |
AP_Sint32 | Recv (AP_Byte *pointer, const AP_Uint32 size) |
AP_Sint32 | Send (const AP_Byte *pointer, const AP_Uint32 size) const |
AP_Bool | valid (void) const |
~AP_Socket (void) | |
Private Attributes | |
AP_String | _m_addr |
AP_Sint32 | _m_socket |
Type | _m_type |
enum Type |
~AP_Socket | ( | void | ) |
AP_Socket Accept | ( | void | ) |
AP_Bool Close | ( | void | ) |
Standard POSIX socket API.
AP_Bool valid | ( | void | ) | const [inline] |