[zeromq-dev] Subports

rektide rektide at gmail.com
Wed May 11 06:43:14 CEST 2011

The ability to have subports within a process would be an excellent addition

On Tue, May 3, 2011 at 11:17 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Hi all,
> Given that there was a strong desire to have subports (multiple 0MQ
> sockets communicating via same TCP port) implemented I've spent couple
> of days on the problem.
> It turns out that due to constraints of BSD socket API the functionality
> can be implemtented only in a very limited way:
> All the sockets sharing the port have to be in a single process. There's
> no way to coexist with another process using the same port even though
> it is using different NIC, there's no way to use a specific NIC at all etc.
> The only systematic solution would be to have a special daemon process
> that would listen on a specific port and pass new connection (via IPC)
> to the libzmq instance that have registered for the relevant subport.
> The question is whether such a solution is in any way better than simply
> using different TCP ports for different 0MQ sockets.
> Thoughts?
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110511/b734b077/attachment.htm>

More information about the zeromq-dev mailing list