He denotes gethostbyaddr() as an obsolete. However, gethostbyaddr() accepts a socket type as a parameter. (AF_INET, AF_INET6) That means it should work well with IPv6. Why it is obsolete?? -I decided to use continually gethostbyaddr(). Remvoing gethostbyaddr() requires a lot of modification on existing code. +We should continue to use gethostbyaddr() because there is no other way to get DNS aliases using newer socket functions. --- Nope. I am trying to remove gethostbyaddr(). +Try getaddrinfo() on www.yahoo.com. You only get 'any-fp.wa1.b.yahoo.com'. +But if you call gethostbyname() on www.yahoo.com, you will get additional hostnames (aliases), which are www.yahoo.com and fp.wg1.b.yahoo.com. {section: Converting Sock} Sock is not only used by TCP/UDP connection but also used by Unix domain socket (AF_UNIX). Basically, Sock can only create TCP or UDP socket internally but SharedEndPoint and SharedPortClient creates Unix domain socket and calls Sock::assign() to pass the descriptor.