On Wed, Jan 25, 2012 at 8:58 AM, Pierre Ynard <[email protected]> wrote:
> I want to bind a zeromq socket to an available TCP port assigned by the > OS. However the standard way of doing this, binding to port 0, fails > with EINVAL. Indeed, there is a check in the code saying that 0 is not a > valid port. Is there any reason for this? Is there another way of doing > this? If you're using the high level C binding this works. It's not a core libzmq functionality. Some other bindings may also provide it. You can check the CZMQ code that does this: https://github.com/zeromq/czmq/blob/master/src/zsocket.c -Pieter _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
