How do I use mqueue (message queue) in a c program on a Linux based system?
I’m looking for some good code examples that can show how this is done in a correct and proper way, maybe a howto.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following is a simple example of a server that receives messages from clients until it receives an “exit” message telling it to stop.
The code for the server:
The code for the client:
The common header:
Compiling: