Re: [zeromq-dev] forking ZMQ_PAIR socket
hamster wrote: Thanks for the quick answer, but it is not exactly what I have asked for. It seems that I was not explicit on required bidirectionality. My main goal is to get async message exchange like AFAIU ZMQ_PAIR socket provides. I.e. the possibility to send messages both from a client and a server at any moment of time and not following req/rep scheme. There are XREP/XREQ sockets allows this kind of thing. It requires some more work on your part though (adding identity of the client to send the message to to the message itself). Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] forking ZMQ_PAIR socket
Hello Peter, Here's an example http://www.zeromq.org/blog:multithreaded-server As far as I understand ZMQ_REQ/ZMQ_REP sockets are unidirectional Typically, a ZMQ_REQ socket (client) sends a request message to a ZMQ_REP (server) socket. The ZMQ_REQ socket blocks until the reply message from the ZMQ_REP socket is returned to the ZMQ_REQ socket. ... Thanks for the quick answer, but it is not exactly what I have asked for. It seems that I was not explicit on required bidirectionality. My main goal is to get async message exchange like AFAIU ZMQ_PAIR socket provides. I.e. the possibility to send messages both from a client and a server at any moment of time and not following req/rep scheme. ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] forking ZMQ_PAIR socket
Hello! I am a newbie with 0mq so I beg my pardon if this question looks boring, yet quick overview of docs/faqs/maillist gave me no answer. Is there any way to setup two-way 0mq communication in usual client-server style? I mean the server which listens on a given port and then forks for every incoming client connection taking it with new process/thread? As far as I understand ZMQ_REQ/ZMQ_REP sockets are unidirectional and ZMQ_PAIR does not allow more than one client to connect to that zmq_bound socket. ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] forking ZMQ_PAIR socket
Hi. On Tue, Jul 6, 2010 at 11:57 AM, hamster yidiepxgx...@spammotel.com wrote: Hello! I am a newbie with 0mq so I beg my pardon if this question looks boring, yet quick overview of docs/faqs/maillist gave me no answer. Yeah doc organization is still a work in progress. But as your learning feel free to contribute by signing in to the web site, which is a wiki, and making any changes. Is there any way to setup two-way 0mq communication in usual client-server style? I mean the server which listens on a given port and then forks for every incoming client connection taking it with new process/thread? Here's an example http://www.zeromq.org/blog:multithreaded-server As far as I understand ZMQ_REQ/ZMQ_REP sockets are unidirectional Typically, a ZMQ_REQ socket (client) sends a request message to a ZMQ_REP (server) socket. The ZMQ_REQ socket blocks until the reply message from the ZMQ_REP socket is returned to the ZMQ_REQ socket. and ZMQ_PAIR does not allow more than one client to connect to that zmq_bound socket. ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev