AMICO_SocketLink Class Reference

#include <AMICO_SocketLink.h>

Inherits AMICO2::AMICO_Link.

Collaboration diagram for AMICO_SocketLink:

Collaboration graph

Public Member Functions

AMICO_LinkAccept (const AP_Uint32 timeout)
 AMICO_SocketLink (const AP_String &address="", AMICO_ActiveMessageQueue *queue=NULL, const AP_Socket &socket=AP_Socket(AP_Socket::TypeNone,-1), const AP_Bool connected=false)
void Close (void)
AP_Bool Connect (const AP_String &alias, const AP_Uint32 timeout)
AP_Bool Recv (AMICO_ActiveMessagePointer &message)
void run (void)
AP_Bool Send (const AMICO_ActiveMessage &message)

Private Attributes

AP_Socket m_Socket

Constructor & Destructor Documentation

AMICO_SocketLink ( const AP_String address = "",
AMICO_ActiveMessageQueue queue = NULL,
const AP_Socket socket = AP_Socket(AP_Socket::TypeNone,-1),
const AP_Bool  connected = false 

Member Function Documentation

AMICO_Link * Accept ( const AP_Uint32  timeout  )  [virtual]

Implements AMICO_Link.

void Close ( void   )  [virtual]

Implements AMICO_Link.

AP_Bool Connect ( const AP_String alias,
const AP_Uint32  timeout 
) [virtual]

Implements AMICO_Link.

AP_Bool Recv ( AMICO_ActiveMessagePointer message  )  [virtual]

Implements AMICO_Link.

void run ( void   )  [virtual]

Main thread function. It must be overloaded in your derived class. It has no parameter.

void run(void)
... do something ...

Reimplemented from AP_Thread.

AP_Bool Send ( const AMICO_ActiveMessage message  )  [virtual]

Implements AMICO_Link.

Field Documentation

AP_Socket m_Socket [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