AP_PeerSocket Class Reference

#include <AP_PeerSocket.h>

Collaboration diagram for AP_PeerSocket:

Collaboration graph

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

Member Enumeration Documentation

enum Type

Enumerator:
TypeUnix 
TypeNet 
TypeNone 


Constructor & Destructor Documentation

AP_PeerSocket ( void   ) 

AP_PeerSocket ( const Type  type  ) 

~AP_PeerSocket ( void   ) 


Member Function Documentation

AP_Bool Accept ( 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]

Inline.

AP_Bool Disconnect ( void   ) 

AP_Bool Listen ( const AP_Uint32  connection  ) 

AP_Bool ReadyForRead ( const AP_Uint32  timeout  )  [inline]

AP_Bool ReadyForWrite ( const AP_Uint32  timeout  )  [inline]

AP_Sint32 Recv ( AP_Byte pointer,
const AP_Uint32  size 
) [inline]

AP_Sint32 Send ( const AP_Byte pointer,
const AP_Uint32  size 
) const [inline]


Field Documentation

AP_String _m_addr [private]

AP_Sint32 _m_peer [private]

Type _m_type [private]


The documentation for this class was generated from the following files:

Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8