24#ifndef _UTILS_IPC_MSG_H_
25#define _UTILS_IPC_MSG_H_
29class IPCMessageQueueData;
72 IPCMessageQueueData *data;
bool recvNext(MessageStruct *msg, unsigned int max_data_size, int *data_size)
Receive messages from this queue of any type.
~IPCMessageQueue()
Destructor.
bool recv(long mtype, MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
static const int MaxMessageSize
Maximum size of a message.
bool isValid()
Check if the message queue is valid If the queue could not be opened yet (for example if you gave cre...
static long mtype(char *buffer)
Get the message type.
bool destroy_on_delete
destroy this message queue on delete?
bool send(MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
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...
Fawkes library namespace.
This is the struct of the messages that has to be fed to send and receive methods.
long int mtype
type of the message