On Thu, Oct 11, 2012 at 5:14 PM, andrea crotti <[email protected]> wrote:
> So suppose I want to make sure that I'm not binding twice, what should I > do? Check if the file already exists or? Yep > try: > sock.bind(addr) > except zmq.Error: > # loop over until find a free channel > That works, you can also bind to port * and check the ZMQ_LAST_ENDPOINT sockopt to get what port was chosen by the OS. Ian _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
