[nanomsg] Re: Pub/Sub with IPv6 on a Mac

  • From: Mark Martinec <Mark.Martinec+nn@xxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Sat, 19 Oct 2013 16:08:24 +0200

On Saturday 12 October 2013 04:41:02 Aaron Hillegass wrote:
> I've been working at getting a Pub/Sub system working where a subscriber
> finds the publisher via Bonjour.  Bonjour is returning an IPv6 address. 
> This seems to be causing trouble on nanomsg 0.2.  At the moment, I'm
> running the publisher and subscriber on the same machine -- so it is a
> IPv6 loopback address.

>     int endpoint = nn_bind(sock, "tcp://fe80::1:9876");

Is fe80::1:9876 really your IP address?

More likely the address is fe80::1 and 9876 is supposed to be a port number,
so [fe80::1]:9876 would be more likely a correct syntax.

Actually the fe80::1 is a link-local address, so it should be scoped
with an interface zone_id, as the same address can exist on
multiple interfaces.

So more likely the proper syntax should be [fe80::1%lo0]:9876

Don't know how nanomsg would handle this.

  Mark

Other related posts: