posix_mq RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Posix Message Queue vs System V Message Queue
@ 2012-07-11 20:16 Iñaki Baz Castillo
  2012-07-12 11:48 ` tad.bochan
  0 siblings, 1 reply; 2+ messages in thread
From: Iñaki Baz Castillo @ 2012-07-11 20:16 UTC (permalink / raw)
  To: ruby.posix.mq

Hi, according to the doc:

"POSIX message queues allow local processes to exchange data in the
form of messages. This API is distinct from that provided by System V
message queues, but provides similar functionality."

My Ruby project [*] uses posix_mq Gem heavily. The "problem" is that
Posix mq is not supported in OSX (not a real problem for me but... you
know). So I wonder, which is the advantage of Posix MQ over System V
MQ?

And... does Ruby (1.9) include support for System V mq? I've found a project:

  http://sysvipc.rubyforge.org/

but it seems that it does not provide a like-IO object in the way
posix_mq provides, so I cannot properly integrate it with EventMachine
(I did it for EM: https://github.com/ibc/em-posixmq).

Thanks a lot for any explanation.


[*] https://github.com/versatica/OverSIP


-- 
Iñaki Baz Castillo
<ibc@aliax.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Posix Message Queue vs System V Message Queue
  2012-07-11 20:16 Posix Message Queue vs System V Message Queue Iñaki Baz Castillo
@ 2012-07-12 11:48 ` tad.bochan
  0 siblings, 0 replies; 2+ messages in thread
From: tad.bochan @ 2012-07-12 11:48 UTC (permalink / raw)
  To: ruby.posix.mq

[-- Attachment #1: Type: text/plain, Size: 4734 bytes --]


Excellent description of PMQ & System V queues in "Unix Network Programming
Vol 2"  by W. Richard Stevens.

Quote:
1. A read on a PMQ always returns the oldest message of the highest
priority, whereas SystemV can return a
message of any desired priority.
2. PMQ's allow the generation of a signal or the initiation of a thread
when a message is placed on an empty queue,
whereas nothing similar is provided by SystemV massage queues.




                                                                                
                                                                                
                                                                                
       [ruby.posix.mq] Posix Message Queue vs System V Message Queue            
                                                                                
                                                                                
       (Internet)                                                               
       ibc                                                                      
                                                                                
                                                                                
                                                                                
                                              A :                               
                                                         ruby.posix.mq          
                                                                                
                                                               11/07/2012 22:17 
                                                                                
                                                                                
       Envoyé par: ruby.posix.mq@librelist.org                                  
       Veuillez répondre à ruby.posix.mq                                        
                                                                                
                                                                                
                                                                                






Hi, according to the doc:

"POSIX message queues allow local processes to exchange data in the
form of messages. This API is distinct from that provided by System V
message queues, but provides similar functionality."

My Ruby project [*] uses posix_mq Gem heavily. The "problem" is that
Posix mq is not supported in OSX (not a real problem for me but... you
know). So I wonder, which is the advantage of Posix MQ over System V
MQ?

And... does Ruby (1.9) include support for System V mq? I've found a
project:

  http://sysvipc.rubyforge.org/

but it seems that it does not provide a like-IO object in the way
posix_mq provides, so I cannot properly integrate it with EventMachine
(I did it for EM: https://github.com/ibc/em-posixmq).

Thanks a lot for any explanation.


[*] https://github.com/versatica/OverSIP


--
Iñaki Baz Castillo
<ibc@aliax.net>


This message and any attachments (the "message") is
intended solely for the intended addressees and is confidential. 
If you receive this message in error,or are not the intended recipient(s), 
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose, 
dissemination or disclosure, either whole or partial, is prohibited. Since the internet 
cannot guarantee the integrity of this message which may not be reliable, BNP PARIBAS 
(and its subsidiaries) shall not be liable for the message if modified, changed or falsified. 
Do not print this message unless it is necessary,consider the environment.

----------------------------------------------------------------------------------------------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") 
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de 
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute 
publication, totale ou partielle, est interdite. L'Internet ne permettant pas d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas 
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans l'hypothese
ou il aurait ete modifie, deforme ou falsifie. 
N'imprimez ce message que si necessaire, pensez a l'environnement.

[-- Attachment #2: Type: text/plain, Size: 3941 bytes --]

   Excellent description of PMQ & System V queues in "Unix Network
   Programming Vol 2" by W. Richard Stevens.
   Quote:
   1. A read on a PMQ always returns the oldest message of the highest
   priority, whereas SystemV can return a
   message of any desired priority.
   2. PMQ's allow the generation of a signal or the initiation of a thread
   when a message is placed on an empty queue,
   whereas nothing similar is provided by SystemV massage queues.
   Inactive hide details for ibc---11/07/2012 22:17:18---Hi, according to
   the doc: "POSIX message queues allow local processes to
   ibc---11/07/2012 22:17:18---Hi, according to the doc: "POSIX message
   queues allow local processes to exchange data in the

   [cid:2__=4EBBF0AADFAC31398f9e8a93d@bnpparibas.com]

   [ruby.posix.mq] Posix Message Queue vs System V Message Queue
(Internet)
ibc

          A :
              ruby.posix.mq

                                                                                  11/07/2012 22:17

   Envoye par: ruby.posix.mq@librelist.org
   Veuillez repondre `a ruby.posix.mq
   _______________________________________________________________________

   Hi, according to the doc:
   "POSIX message queues allow local processes to exchange data in the
   form of messages. This API is distinct from that provided by System V
   message queues, but provides similar functionality."
   My Ruby project [*] uses posix_mq Gem heavily. The "problem" is that
   Posix mq is not supported in OSX (not a real problem for me but... you
   know). So I wonder, which is the advantage of Posix MQ over System V
   MQ?
   And... does Ruby (1.9) include support for System V mq? I've found a
   project:
    [1]http://sysvipc.rubyforge.org/
   but it seems that it does not provide a like-IO object in the way
   posix_mq provides, so I cannot properly integrate it with EventMachine
   (I did it for EM: [2]https://github.com/ibc/em-posixmq).
   Thanks a lot for any explanation.
   [*] [3]https://github.com/versatica/OverSIP
   --
   Inaki Baz Castillo
   <ibc@aliax.net>
   This message and any attachments (the "message") is
   intended solely for the intended addressees and is confidential.
   If you receive this message in error,or are not the intended
   recipient(s),
   please delete it and any copies from your systems and immediately
   notify
   the sender. Any unauthorized view, use that does not comply with its
   purpose,
   dissemination or disclosure, either whole or partial, is prohibited.
   Since the internet
   cannot guarantee the integrity of this message which may not be
   reliable, BNP PARIBAS
   (and its subsidiaries) shall not be liable for the message if modified,
   changed or falsified.
   Do not print this message unless it is necessary,consider the
   environment.
   -----------------------------------------------------------------------
   -----------------------------------------------------------
   Ce message et toutes les pieces jointes (ci-apres le "message")
   sont etablis a l'intention exclusive de ses destinataires et sont
   confidentiels.
   Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
   merci de le detruire ainsi que toute copie de votre systeme et d'en
   avertir
   immediatement l'expediteur. Toute lecture non autorisee, toute
   utilisation de
   ce message qui n'est pas conforme a sa destination, toute diffusion ou
   toute
   publication, totale ou partielle, est interdite. L'Internet ne
   permettant pas d'assurer
   l'integrite de ce message electronique susceptible d'alteration, BNP
   Paribas
   (et ses filiales) decline(nt) toute responsabilite au titre de ce
   message dans l'hypothese
   ou il aurait ete modifie, deforme ou falsifie.
   N'imprimez ce message que si necessaire, pensez a l'environnement.

References

   1. http://sysvipc.rubyforge.org/
   2. https://github.com/ibc/em-posixmq
   3. https://github.com/versatica/OverSIP

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-12 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11 20:16 Posix Message Queue vs System V Message Queue Iñaki Baz Castillo
2012-07-12 11:48 ` tad.bochan

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_posix_mq.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).