AMICO_link Class Reference

#include <AMICO_link.h>

Inherits AP::AP_Thread.

Collaboration diagram for AMICO_link:

Collaboration graph

Public Member Functions

AP_Bool Accept (const AP_Uint32 timeout)
void AcceptBackground (const AP_Uint32 timeout)
AP_Bool acceptedBackground (void) const
 AMICO_link (void)
const AMICO_attributeattribute () const
AP_Bool binded (void) const
AP_Bool CallPrimitive (const AP_String &name, AP_Uint32 sizein, AP_Pointer in, AP_Uint32 sizeout, AP_Pointer out)
AP_Bool Connect (const AP_String &target, const AP_Uint32 timeout)
AP_Bool connected (void) const
AP_Bool Create (const AMICO_attribute &attr, AP_ThreadSemaphore *event=NULL)
AP_Bool DeregisterPrimitive (const AP_String &name)
void Destroy (void)
AP_Bool Disconnect (void)
AP_Sint32 receivedMessage (void)
AP_Sint32 receivedStream (void)
AP_Bool Recv (AMICO_packet &packet)
AP_Bool RegisterPrimitive (const AMICO_primitive_call &primitive)
AP_String remote (void) const
void run (void)
AP_Bool Send (const AMICO_packet &packet) const
AP_Bool StreamIn (AP_String &name, AP_Pointer &buffer, AP_Uint32 &size, const AP_String &filter="")
AP_Bool StreamOut (const AP_String &name, const AP_Pointer buffer, const AP_Uint32 size)
AP_Bool valid (void) const
AP_Bool WaitPrimitive (const AP_String &name)
 ~AMICO_link (void)

Private Member Functions

AP_Bool recv (AMICO_packet &packet) const
 Main receive function.
AP_Bool send (const AMICO_packet &packet) const
 Main send function.

Private Attributes

AMICO_attribute _m_attribute
 Phisical layer.
AP_Bool _m_binded
AMICO_link_accept _m_link_accept_background
 Accept background.
AMICO_primitive_table _m_primitive_table
 Primitive table.
AMICO_message_queue _m_queue_alarm
 Queue & data parking.
AMICO_message_queue _m_queue_event
AMICO_message_queue _m_queue_info
AMICO_message_queue _m_queue_stream
AP_ThreadSemaphore _m_received_message
 Event synchronizations.
AP_ThreadSemaphore _m_received_reply
AP_ThreadSemaphore _m_received_stream
AP_String _m_remote
AMICO_packet _m_reply
AP_Bool _m_valid

Constructor & Destructor Documentation

AMICO_link ( void   ) 

~AMICO_link ( void   ) 

Member Function Documentation

AP_Bool Accept ( const AP_Uint32  timeout  ) 

void AcceptBackground ( const AP_Uint32  timeout  ) 

AP_Bool acceptedBackground ( void   )  const [inline]

const AMICO_attribute& attribute (  )  const [inline]


AP_Bool binded ( void   )  const [inline]

AP_Bool CallPrimitive ( const AP_String name,
AP_Uint32  sizein,
AP_Pointer  in,
AP_Uint32  sizeout,
AP_Pointer  out 

AP_Bool Connect ( const AP_String target,
const AP_Uint32  timeout 

AP_Bool connected ( void   )  const [inline]

AP_Bool Create ( const AMICO_attribute attr,
AP_ThreadSemaphore event = NULL 

AP_Bool DeregisterPrimitive ( const AP_String name  ) 

void Destroy ( void   ) 

AP_Bool Disconnect ( void   ) 

AP_Sint32 receivedMessage ( void   )  [inline]

AP_Sint32 receivedStream ( void   )  [inline]

AP_Bool Recv ( AMICO_packet packet  ) 

AP_Bool recv ( AMICO_packet packet  )  const [inline, private]

Main receive function.

AP_Bool RegisterPrimitive ( const AMICO_primitive_call primitive  ) 

AP_String remote ( void   )  const [inline]

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_packet packet  )  const

AP_Bool send ( const AMICO_packet packet  )  const [inline, private]

Main send function.

AP_Bool StreamIn ( AP_String name,
AP_Pointer &  buffer,
AP_Uint32 &  size,
const AP_String filter = "" 

AP_Bool StreamOut ( const AP_String name,
const AP_Pointer  buffer,
const AP_Uint32  size 

AP_Bool valid ( void   )  const [inline]

AP_Bool WaitPrimitive ( const AP_String name  ) 

Field Documentation

Phisical layer.

AP_Bool _m_binded [private]

Accept background.

Primitive table.

Queue & data parking.

Event synchronizations.

AP_String _m_remote [private]

AP_Bool _m_valid [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