Result enum
RESULT_OK - = 0
RESULT_SOCKET_EXISTS - = -1
RESULT_SOCKET_NOT_FOUND - = -2
RESULT_SOCKET_OUT_OF_RESOURCES - = -3
RESULT_INVALID_SOCKET_NAME - = -4
RESULT_MALFORMED_URL - = -5
RESULT_NAME_OK_SOCKET_NOT_FOUND - = -6
Socket handle
URL specifying a sender/receiver of messages
Helper struct for parsing a string of the form "socket:path#fragment"
m_Socket - The socket
m_SocketSize - The socket length
m_Path - The path
m_PathSize - The path length
m_Fragment - The fragment
m_FragmentSize - The fragment length
Resets the given URL to default values.
url - URL to reset
Get the message socket
url - url
socket -
Set the socket
url - url
socket -
Tests if a socket is valid (not deleted).
socket - Socket
result - if the socket is valid or not
Get socket name
socket - Socket
name - socket name. 0 if it was not found
Get the message path
url - url
path -
Set the message path
url - url
path -
Get the message fragment
url - url
fragment -
Set the message fragment
url - url
fragment -
A callback for messages that needs cleanup after being dispatched. E.g. for freeing resources/memory.
Message data desc used at dispatch callback. When a message is posted, the actual object is copied into the sockets internal buffer.
m_Sender - Sender uri
m_Receiver - Receiver uri
m_Id - Unique id of message
m_UserData1 - User data pointer
m_UserData2 - User data pointer
m_Descriptor - User specified descriptor of the message data
m_DataSize - Size of message data in bytes
m_Next - Ptr to next message (or 0 if last)
m_DestroyCallback - If set, will be called after each dispatch
m_Data - Payload
Convert a string to a URL struct
uri - string of the format ][path[#fragment]
out - url in string format, must not be 0x0
- - RESULT_OK on success - RESULT_MALFORMED_URL if the uri could not be parsed