commit | 7d896ab1bbd5e15be7ae9203ead47f4f500a6a81 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Aug 04 22:16:43 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Aug 04 22:16:43 1998 +0000 |
tree | 798a22d0702c80fc3222ac8512a9c8fd4cf0b364 | |
parent | 45f2601cf38b11647df3a3dd45465d4c57c77dfc [diff] |
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.