SIGN IN SIGN UP

Added gethostbyname_ex(), which returns the same kind of data as

gethostbyaddr().  (Plain gethostbyname() returns only the IP address.)
This moves the code shared by gethostbyaddr() and gethostbyname_ex()
to a subroutine.

Original patch by Dan Stromberg; some tweaks by GvR.
G
Guido van Rossum committed
7d896ab1bbd5e15be7ae9203ead47f4f500a6a81
Parent: 45f2601