24 #ifndef __UTILS_IPC_MSG_H_ 25 #define __UTILS_IPC_MSG_H_ 30 class IPCMessageQueueData;
76 IPCMessageQueueData *data;
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.
Fawkes library namespace.
bool isValid()
Check if the message queue is valid If the queue could not be opened yet (for example if you gave cre...
~IPCMessageQueue()
Destructor.
bool destroy_on_delete
destroy this message queue on delete?
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...
static const int MaxMessageSize
Maximum size of a message.
long int mtype
type of the message
This is the struct of the messages that has to be fed to send and receive methods.
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.