[nanomsg] How to bind on a random port?

  • From: "xreborner (Shixi Chen)" <xreborner@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 14 Nov 2014 22:41:39 +0800

I tried to repeat calling nn_bind on random port. However, it just aborts
if the port is already in use, rather than returning *EADDRINUSE*. I also
tried to use the latest code from github. It doesn't abort, but it doesn't
return an error code either. Anyway to solve this problem?

Thanks.

Other related posts: