[zeromq-dev] forking ZMQ_PAIR socket
vel.accel at gmail.com
Wed Jul 7 05:19:55 CEST 2010
On Tue, Jul 6, 2010 at 11:57 AM, hamster <YIDIEPXGXGPN at spammotel.com> wrote:
> 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 at lists.zeromq.org
More information about the zeromq-dev