Hu Xinwei wrote:
> That poster was me(sorry, I dont familiar with wiki). IMHO,
> addrinfo/getaddrinof/freeaddrinfo are much better than those
> obsoleted gethostbyname.... The reasons are simple.
>
> 1. getaddrinfo is thread-safe. And not all OS provide those
> functions like gethostbyname_r
>
> 2. getaddrinfo resovle one name to multiaddresses, especially a
> name with both IPv4 addresses, and IPv6 addresses.
Just as a side note. getaddrinfo is only supported on Windows XP and
above, no 95/98/Me/NT/2000.
Markus
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
- [boost] Re: SocketAddress and Nameresolution Hu Xinwei
- [boost] Re: SocketAddress and Nameresolution Markus Schöpflin
- [boost] Re: SocketAddress and Nameresolution Michel André