Index: Lib/socket.py =================================================================== RCS file: /cvsroot/jython/jython/Lib/socket.py,v retrieving revision 1.13 diff -u -r1.13 socket.py --- Lib/socket.py 31 May 2002 10:50:01 -0000 1.13 +++ Lib/socket.py 24 Oct 2002 23:41:08 -0000 @@ -16,7 +16,7 @@ __all__ = ['AF_INET', 'SOCK_DGRAM', 'SOCK_RAW', 'SOCK_RDM', 'SOCK_SEQPACKET', 'SOCK_STREAM', 'SocketType', 'error', 'getfqdn', 'gethostbyaddr', - 'gethostbyname', 'gethostname', 'socket'] + 'gethostbyname', 'gethostname', 'socket', 'getaddrinfo'] error = IOError @@ -77,6 +77,10 @@ else: return _udpsocket() +def getaddrinfo(host, port, family=0, socktype=SOCK_STREAM, proto=0, flags=0): + return ( (AF_INET, socktype, 0, "", (gethostbyname(host), port)), ) + + class _tcpsocket: @@ -156,6 +160,8 @@ n = len(s) self.ostream.write(s) return n + + sendall = send def getsockname(self): if not self.sock: