AP_Socket Class Reference

#include <AP_Socket.h>

Collaboration diagram for AP_Socket:

Collaboration graph

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

Member Enumeration Documentation

enum Type

Enumerator:
TypeUnix 
TypeNet 
TypeNone 


Constructor & Destructor Documentation

AP_Socket ( const Type  type = TypeUnix  ) 

AP_Socket ( const Type  type,
const AP_Sint32  socket 
)

~AP_Socket ( void   ) 


Member Function Documentation

AP_Socket Accept ( void   ) 

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  )  [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]

AP_Bool valid ( void   )  const [inline]


Field Documentation

AP_String _m_addr [private]

AP_Sint32 _m_socket [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