IPCQUEUE(1)

πŸ“¦
version 0.9.7 Β· 2 versions
, in fedora 43

πŸ’– IPCQUEUE(1) πŸ’–

okay bestie, welcome to ipcqueue(1) β€” the manual page for ipcqueue πŸŽ€ pull up a chair, we're doing queues today and honestly? iconic.


✨ NAME ✨

ipcqueue β€” literally the ipcqueue Documentation. that's it, that's the name, short and sweet πŸ’…


πŸ¦‹ POSIX MESSAGE QUEUE πŸ¦‹

okay so first up: the POSIX flavour. here's the whole vibe, no cap 🫢

>>> from ipcqueue import posixmq
>>> q = posixmq.Queue('/foo')
>>> q.qsize()
0
>>> q.put([1, 'A'])
>>> q.put([2, 'B'], priority=2)
>>> q.put([3, 'C'], priority=0)
>>> q.qsize()
3
>>> q.get()
[2, 'B']
>>> q.get()
[1, 'A']
>>> q.get()
[3, 'C']
>>> q.close()
>>> q.unlink()

so you import posixmq, you spin up a Queue on '/foo', and qsize() is like... 0 at first. then three puts go in with different priority values, qsize() says 3, and the gets come out in that order: [2, 'B'], [1, 'A'], [3, 'C'] ✨ and then β€” the important part β€” q.close() and q.unlink(). don't forget the cleanup bestie, we're not leaving mess behind πŸ§ΉπŸ’–


🌈 SYS V MESSAGE QUEUE 🌈

now the other one, the SYS V one. she's giving legacy-but-thriving energy πŸ‘‘

>>> from ipcqueue import sysvmq
>>> q = sysvmq.Queue(1)
>>> q.qsize()
>>> q.put([1, 'A'])
>>> q.put([2, 'B'], msg_type=2)
>>> q.put([3, 'C'], msg_type=2)
>>> q.put([4, 'D'], msg_type=1)
>>> q.qsize()
4
>>> q.get(msg_type=2)
[2, 'B']
>>> q.get()
[1, 'A']
>>> q.get()
[3, 'C']
>>> q.get()
[4, 'D']
>>> q.close()

this time it's sysvmq and the Queue takes 1 β€” that's the key, not a path, different girl different vibe 😌. note that here msg_type is the thing you pass to put, and q.qsize() comes back 4 after all four puts. then q.get(msg_type=2) pulls [2, 'B'], and the rest fall out in order: [1, 'A'], [3, 'C'], [4, 'D'] πŸ”₯ and yeah, q.close() at the end, periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Jan Seifert β€” the author, the icon, the moment 🫢


2017, Jan Seifert. all the rights, all the credit, as it should be ✨


okay that's the whole page bestie!! this was the ipcqueue manual, Oct 05, 2025 edition β€” that's the source and the date, so you know exactly which one you're reading πŸ“…πŸ’– now go forth and queue responsibly, mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from