mq_receive: message too long

前端 未结 4 982
再見小時候
再見小時候 2020-12-31 11:20

I am implementing a communication between 2 processes using a queue. The problem is that when I call the function mq_receive, I get this error: Message too long.

I h

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 11:44

    Just a correction above... "This size must be equal or greater than the mq_msgsize attribute of the queue"

    Equal size is probably required if you are passing a struct instead of a buffer: see: send struct in mq_send

提交回复
热议问题