[zeromq-dev] zmq_req / zmq_rep topology

Jon Dyte jon at totient.co.uk
Thu Mar 11 20:55:03 CET 2010


Martin Sustrik wrote:
> Jonathan,
>
>   
>> I intend to create a fairly complex networking topology using zmq_rep 
>> and zmq_req sockets.  I have a couple questions:
>>
>> 1.  When using IPC as the transport method, after binding a zmq_rep 
>> socket to an IPC pathname, can I have multiple zmq_req sockets connect 
>> to that same pathname and expect replies to be routed correctly by ZMQ?  
>> (Are you using ports to identify to whom replies should be sent?)
>>     
>
> Yes, you can. The mechanism underneath uses UNIX domain sockets rather 
> than TCP i.e. no ports.
>
>   
>> 2.  I believe I need zmq_queue for my topology as well.  I noticed in 
>> the manual that it has no documentation (all fields are "to be 
>> written").  If it is incomplete, are there any updates on when it will 
>> be released?  If it's finished, but simply doesn't have a manual page 
>> yet, are there any examples of its usage out there that I could check out?
>>     
>
> zmq_queue is and multi-hop REQ/REP is unfinished. You can make it work, 
> but it requires some manual tweaking.
>
> Jon Dyte was already able to get it working so he may consider 
> commenting here.
>
>   
Hi been out of the zmq loop for a few days.

Yes, I have this working as an in process model.
I also am modifing zmq_queue.cpp so inter-process works.

I'll try and get a patch up in the next few hours.

Jon


> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>   




More information about the zeromq-dev mailing list