|
Public Member Functions |
virtual | ~terimber_aiomsg () |
| destructor
|
virtual bool | init (const char *info, const char *ini_key)=0 |
| initial functions to activate and deactivate message transport
|
virtual bool | init (const void *buffer, size_t len)=0 |
| initial functions to activate and deactivate message transport
|
virtual bool | uninit ()=0 |
| function uninitializes the message port
|
virtual bool | start (msg_callback_notify *callback, size_t additional_thread_count)=0 |
| function that activates and deactivates callback port it make sense to specify additional_thread_count > 0 if the order incoming messages doesn't matter otherwise specify additional_thread_count = 0 and process incoming messages one by one in order as they arrived
|
virtual bool | stop ()=0 |
| function stops message processing
|
virtual const char * | get_port_error () const =0 |
| message port error function
|
virtual const guid_t & | get_port_address () const =0 |
| returns the port address - comes from init file
|
virtual msg_t * | construct (size_t size)=0 |
| internal allocate, reallocate, and free memory caller has to create ALL messages through construct function and call destroy function to free memory return pointer to the message object or null
|
virtual bool | resize (msg_t *msg, size_t size)=0 |
| resizes the message the old memory will be preserved
|
virtual bool | destroy (msg_t *msg)=0 |
| destroys message
|
virtual size_t | get_size (const msg_t *msg) const =0 |
| messages content management functions
|
virtual bool | write_buffer (msg_t *msg, size_t offset, const void *buf, size_t len)=0 |
| function returns true if offset + len <= message size (see resize function)
|
virtual const void * | get_buffer (const msg_t *msg) const =0 |
| constant variant of previous function
|
virtual bool | set_receiver (msg_t *msg, const guid_t &receiver)=0 |
| messages from/to settings
|
virtual bool | get_sender (const msg_t *msg, guid_t &sender) const =0 |
| gets sender address
|
virtual bool | send (bool copy, msg_t *msg, msg_t **reply)=0 |
| function send message and wait the reply for timeout milliseconds (garantee delivery) if function returns false the caller is still responsible for message destruction regardless the copy parameter value
|
virtual guid_t | send_async (bool copy, msg_t *msg)=0 |
| function sends message asynchronically (guarantee delivery) and returns unique identificator (zero means error) which will be used as input parameter for asynchronous callback function if function returns zero the caller is still responsible for message destruction regardless the copy parameter value retun value, if non zero is unique identificator, which will be used for firing asynchronous reply, see above
|
virtual bool | post (bool copy, msg_t *msg)=0 |
| function posts message and doesn't wait for a reply - this is a non-guarantee delivery if function returns false the caller is still responsible for message destruction regardless the copy parameter value
|
virtual bool | add_connection (const char *xml_description)=0 |
| additional functionality to manage connections dynamically - xml string describes connection as xml node of follow XDTD extended DTD <!ENTITY % kind "(rpc | sock | p2p)"> <!ELEMENT connection EMPTY> <!ATTLIST connection address CTYPE vt_guid REQUIRED port CTYPE vt_ub2 IMPLIED network CDATA IMPLIED ping CTYPE vt_ub4 IMPLIED info CDATA IMPLIED security CTYPE vt_bool IMPLIED password CDATA IMPLIED > encpytion is reserved for production version
|
virtual bool | add_listener (const char *xml_description)=0 |
| additional functionality to manage listeners dynamically - xml string describes connection as xml node of follow XDTD extended DTD <!ELEMENT listener (accept | reject)?> <!ELEMENT reject (peer)+> <!ELEMENT accept (peer)+> <!ELEMENT peer EMPTY> <!ATTLIST peer address CTYPE vt_guid REQUIRED security CTYPE vt_bool IMPLIED password CDATA IMPLIED > <!ATTLIST listener port CTYPE vt_ub2 IMPLIED network CDATA IMPLIED connections CTYPE vt_ub4 IMPLIED ping CTYPE vt_ub4 IMPLIED waste CTYPE vt_ub4 IMPLIED info CDATA IMPLIED security CTYPE vt_bool IMPLIED password CDATA IMPLIED >
|
virtual bool | remove_connection (const guid_t &address)=0 |
| removes connection dynamically
|
virtual bool | remove_listener (const char *type)=0 |
| removes listener dynamically
|
virtual void | doxray ()=0 |
| do xray
|