[zeromq-dev] Why doesn't 0mq save fd by merging sockets connecting to the same address?

Martin Sustrik sustrik at 250bpm.com
Sat Oct 15 21:56:54 CEST 2011


On 10/15/2011 09:52 PM, Yichao Zhang wrote:
> Hi all,
>
> If you create N sockets from the same context and connect them all to
> the same remote address, there will be N file descriptors opened by the
> 0mq library. Am I wrong to assume that it is possible for the library to
> use only 1 fd and multiplex incoming messages to socket mailboxes based
> on their identifies?

I've wrote an whitepaper on that one. See here:

http://www.250bpm.com/multiplexing

Martin



More information about the zeromq-dev mailing list