On Thu, Jan 26, 2012 at 8:34 AM, AJ Lewis <[email protected]> wrote:
> Forgive me if I'm being dense, but couldn't the N case work if you made > sure to do the getsockopt() call after each zmq_bind()? > > zmq_bind(foo, "tcp://XXXX:0") > zmq_getsockopt(foo, GET_LAST_BOUND_PORT, &port1, sizeof(port1)) > zmq_bind(foo, "tcp://YYYY:0") > zmq_getsockopt(foo, GET_LAST_BOUND_PORT, &port2, sizeof(port2)) You're not being dense and this is exactly what I meant by "bind is synchronous", unlike a connect. The code example makes it easier to understand. Thanks! -Pieter _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
