getaddrinfo weirdness
Trent Lloyd
trent at ztsoftware.net
Fri Feb 14 12:53:39 EST 2003
Hi,
Trying to use getaddrinfo to get listening addresses
--
import socket
print socket.getaddrinfo(None, "ircd",socket.AF_UNSPEC , socket.SOCK_STREAM, 0)
--
which yields the same result as
--
import socket
print socket.getaddrinfo(None, "ircd")
--
seven:~/gravity> python test.py
[(10, 1, 6, '', ('::1', 6667, 0, 0)), (2, 1, 6, '', ('127.0.0.1', 6667))]
Technically this should return all listerning interfaces and therefore i
suspect perhaps :: and others.
Trent Lloyd [Lathat]
More information about the Python-list
mailing list