简体   繁体   中英

Alternative to POSIX message queues

I am using POSIX message queues in a non-root system. I am running into significant issues with unlinking and cleaning. I can't see opened message queues and then write a routine to clean them.

I was wondering if one of the two are possible:

  • Create POSIX mqueue locally, in $PWD or something
  • Get an alternative message queue library instead of the standard one from Linux.

One thing you can try is to see whether you can go by using a unix domain datagram sockets instead of posix message queues, in particular SOC_SEQPACKET variety of those:

http://man7.org/linux/man-pages/man7/unix.7.html

If this is not enough, there are plenty of message queue abstraction libraries out there, such as a popular ZeroMQ: http://zeromq.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM