[zeromq-dev] Subports
Pieter Hintjens
ph at imatix.com
Tue May 3 21:05:04 CEST 2011
On Tue, May 3, 2011 at 8:38 PM, Martin Pales <m.pales at gmail.com> wrote:
> I am not sure if I understand this correctly, but if this is similar to
> SCTP's streams concept, then it can be solved by reserving one or two bytes
> in the wire format for something like stream id (subport number here). If
> non-zero, then the message would be routed to registered socket(s).
You don't need this in each frame, it's sufficient to negotiate it at
the start of the connection.
bind: specify interface, port, service
connect: specify interface, port, service
Where service can be a string. It should not be a number.
You would not allow subports over protocols other than TCP, which is fine.
-Pieter
More information about the zeromq-dev
mailing list