[zeromq-dev] IPv6 patch

Steven McCoy steven.mccoy at miru.hk
Wed Jan 27 14:30:19 CET 2010

2010/1/27 Martin Sustrik <sustrik at 250bpm.com>

> 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://[]:5555
> tcp://[server001.zeromq.org]:5555
> I an not sure that the above is desirable behaviour.
It's only valid with IPv6 literal addresses, I was lucky with the code paths
in OpenPGM as it follows well.

For ZeroMQ, if you see an open square bracket basically force AF_INET6 and
perform a getaddrinfo lookup with AI_NUMERICHOST.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100127/e1bcca6a/attachment.htm>

More information about the zeromq-dev mailing list