27 #include <utils/ipc/msg.h> 43 main(
int argc,
char **argv )
51 for (
unsigned int i = 0; i < 10; ++i) {
54 memset(&smsg, 0,
sizeof(smsg));
55 memset(&rmsg, 0,
sizeof(rmsg));
57 smsg.mtype = QA_MTYPE;
58 sprintf(smsg.msg,
"%u", i);
63 printf(
"Sent: %s Received: %s\n", smsg.msg, rmsg.msg);
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.
bool recv(long mtype, MessageStruct *msg, unsigned int data_size)
Receive messages from this queue of the given message type.