27#include <utils/ipc/msg.h>
44main(
int argc,
char **argv)
52 for (
unsigned int i = 0; i < 10; ++i) {
55 memset(&smsg, 0,
sizeof(smsg));
56 memset(&rmsg, 0,
sizeof(rmsg));
58 smsg.mtype = QA_MTYPE;
59 sprintf(smsg.msg,
"%u", i);
64 printf(
"Sent: %s Received: %s\n", smsg.msg, rmsg.msg);
bool recv(long mtype, MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
bool send(MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.
Fawkes library namespace.
This is the struct of the messages that has to be fed to send and receive methods.