#include <AMICO_link.h>
Inherits AP::AP_Thread.
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_attribute & | attribute () const |
Inline. | |
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 |
AP_ThreadSemaphore * | _m_event |
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_PeerSocket * | _m_transport |
AP_Bool | _m_valid |
Flags. |
AMICO_link | ( | void | ) |
~AMICO_link | ( | void | ) |
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] |
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] |
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 | ) |
AMICO_attribute _m_attribute [private] |
Phisical layer.
AP_Bool _m_binded [private] |
AP_ThreadSemaphore* _m_event [private] |
AMICO_link_accept _m_link_accept_background [private] |
Accept background.
AMICO_primitive_table _m_primitive_table [private] |
Primitive table.
AMICO_message_queue _m_queue_alarm [private] |
Queue & data parking.
AMICO_message_queue _m_queue_event [private] |
AMICO_message_queue _m_queue_info [private] |
AMICO_message_queue _m_queue_stream [private] |
AP_ThreadSemaphore _m_received_message [private] |
Event synchronizations.
AP_ThreadSemaphore _m_received_reply [private] |
AP_ThreadSemaphore _m_received_stream [private] |
AMICO_packet _m_reply [private] |
AP_PeerSocket* _m_transport [private] |
AP_Bool _m_valid [private] |
Flags.