]> granicus.if.org Git - python/commit
Added gethostbyname_ex(), which returns the same kind of data as
authorGuido van Rossum <guido@python.org>
Tue, 4 Aug 1998 22:16:43 +0000 (22:16 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Aug 1998 22:16:43 +0000 (22:16 +0000)
commit7d896ab1bbd5e15be7ae9203ead47f4f500a6a81
tree798a22d0702c80fc3222ac8512a9c8fd4cf0b364
parent45f2601cf38b11647df3a3dd45465d4c57c77dfc
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.
Modules/socketmodule.c