Hello,

> Can you pls. see if it makes sense.

Your patch cannot compile on MacOS X. This is because you are using
undefined member "s6_addr16". You MUST use "s6_addr" instead of
"s6_addr16". For more information, please refer to:

        http://www.ietf.org/rfc/rfc3493.txt

Also, you should use "getnameinfo()" with the NUMERIC flag instead of
direct access to "s6_addr". Since you wrap the code with #ifdef
AF_INET6, you can assume "getnameinfo()" is available.

> BTW, with IPv4, it is custom to write 1.2.3.4:999 to separate the IP
> address and port number.  Is there a similar notation for IPv6? 

If you intend that the numeric representation would be used in URLs,
you should use the "[A:B:C:D:E:F:G:H]:port" notation. See:

        http://www.ietf.org/rfc/rfc2732.txt

If you don't have such intention, please use whatever you like.

--Kazu


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to