#include <AP_PeerSocket.h>
Public Types | |
enum | Type { TypeUnix = PF_UNIX, TypeNet = PF_INET, TypeNone } |
Public Member Functions | |
AP_Bool | Accept (void) |
AP_PeerSocket (const Type type) | |
AP_PeerSocket (void) | |
AP_Bool | Bind (const AP_String &local) |
AP_Bool | Connect (const AP_String &target) |
Standard POSIX socket API. | |
AP_Bool | connected (void) const |
Inline. | |
AP_Bool | Disconnect (void) |
AP_Bool | Listen (const AP_Uint32 connection) |
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_PeerSocket (void) | |
Private Attributes | |
AP_String | _m_addr |
AP_Sint32 | _m_peer |
AP_Sint32 | _m_socket_accept |
AP_Sint32 | _m_socket_connect |
Type | _m_type |
enum Type |
AP_PeerSocket | ( | void | ) |
AP_PeerSocket | ( | const Type | type | ) |
~AP_PeerSocket | ( | void | ) |
AP_Bool Accept | ( | void | ) |
AP_Bool connected | ( | void | ) | const [inline] |
Inline.
AP_Bool Disconnect | ( | void | ) |
AP_Sint32 _m_socket_accept [private] |
AP_Sint32 _m_socket_connect [private] |