[zeromq-dev] IPv6 patch

Martin Sustrik sustrik at 250bpm.com
Wed Jan 27 14:25:52 CET 2010


Martin Lucina wrote:
> steven.mccoy at miru.hk said:
>> 2010/1/25 Martin Sustrik <sustrik at 250bpm.com>:
>>> Hopefully, the IPv6 support will improve in the future.
>> Ok, I was wondering about port handling too, the de facto standard
>> appears to be using square brackets, e.g.
>>
>>  tcp://[fe80::21e:37ff:fe34:a386]:5555
> 
> Yes please!
> 
> +1

The address is parsed using getaddrinfo (both IPv4 and IPv6). If I make 
the code ignore the brackets, even following addresses would become valid:

tcp://[127.0.0.1]:5555
tcp://[server001.zeromq.org]:5555

I an not sure that the above is desirable behaviour.

Martin



More information about the zeromq-dev mailing list