Fawkes API
Fawkes Development Version
|
24 #ifndef _UTILS_IPC_MSG_H_
25 #define _UTILS_IPC_MSG_H_
29 class IPCMessageQueueData;
72 IPCMessageQueueData *data;
~IPCMessageQueue()
Destructor.
static const int MaxMessageSize
Maximum size of a message.
bool recv(long mtype, MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
static long mtype(char *buffer)
Get the message type.
bool send(MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
bool recvNext(MessageStruct *msg, unsigned int max_data_size, int *data_size)
Receive messages from this queue of any type.
bool isValid()
Check if the message queue is valid If the queue could not be opened yet (for example if you gave cre...
This is the struct of the messages that has to be fed to send and receive methods.
IPCMessageQueue(const char *path, char id, bool create=false, bool destroy_on_delete=false)
Create or open a message queue If a message key with the given identification criteria exists it is o...