Questions tagged [msgrcv]

A system call used to receive messages from a message queue in Linux. Similarly, Msgsnd() is the respective system call used to send messages. Use this tag for questions related to the system call msgrcv()

A system call used to receive messages from a message queue in Linux. Similarly, Msgsnd() is the respective system call used to send messages. Use this tag for questions related to the system call msgrcv()

35 questions
0
votes
1 answer

read dynamic length content using msgrcv

I use msgrcv function to read message from message queue. It works fine when I read known length data. Some cases my message length is variable. In such How can i allocate only require amount of memory and read the message from message queue…
Pavunkumar
  • 5,147
  • 14
  • 43
  • 69
-1
votes
1 answer

msgrcv getting blank messages

I have two programs that send and receives messages back and forth from each other via IPC queues. However, sometimes the msgrcv function will get a blank message instead of receiving what was actually sent through the queue. I've commented out a…
Zac
  • 2,325
  • 3
  • 23
  • 33
-1
votes
1 answer

How to fix string declaration error in scope

I'm trying to run an interprocess communication program but it says string is not declared in the scope as is and when I add #inlcude I get an error that says: receiver.cpp:25:35: error: invalid conversion from ‘char*’ to ‘int’ [-fpermissive] …
CoderInNeed
  • 41
  • 1
  • 1
  • 2
-1
votes
1 answer

Invalid argument on msgrcv in c

#include #include #include #include #include #include #include #include #include struct msgbuf { long mtype; /* type of…
duca
  • 153
  • 1
  • 2
  • 12
-1
votes
1 answer

asking about msgrcv , does not work for accept messages accourding priority

this is my code and in the last part,msgrecv does not accept the messages from the queue accourding the correct preiority , eg: 10 is most important to accept then type=20 then type=30 ... that is my goal is to accept messages in this manner ... …
ak ak
  • 1
  • 1
1 2
3