[zeromq-dev] Binding to TCP port 0
Pieter Hintjens
ph at imatix.com
Thu Jan 26 14:53:06 CET 2012
On Thu, Jan 26, 2012 at 2:17 AM, Ian Barber <ian.barber at gmail.com> wrote:
> Is it possible that this API should simply be on a different calls, a
> zmq_bind_assign or similar, to avoid this clash? This could then work with
> all transports:
>
> tcp/pgm: bind to random port
> ipc: bind to random free name in system tmp
> inproc: bind to random free name
That would work, but so would a less surprising zmq_bind plus a
getsockopt with return value depending on transport type.
-Pieter
More information about the zeromq-dev
mailing list