Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-18 Thread O.R.Senthil Kumaran
-- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of O.R.Senthil Kumaran > Sent: Monday, September 17, 2007 10:08 PM > To: python-dev@python.org > Subject: [Python-Dev] IPv6 hostname resolution using > socket.getaddrinfo() > > To get the hostname, I can

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread Blinston_Fernandes
L PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of O.R.Senthil Kumaran Sent: Monday, September 17, 2007 10:08 PM To: python-dev@python.org Subject: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo() To get the hostname, I can use socket.gethostbyname() but that has an inherent

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread Martin v. Löwis
> Any help/ pointers? Did you read the man page of getaddrinfo, or the RFC? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python

Re: [Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread skip
Senthil> To get the hostname, I can use socket.gethostbyname() but that Senthil> has an inherent limitation wherein does it not support IPv6 Senthil> name resolution, and getaddrinfo() should be used instead. ... For those who would ask Senthil to take this to comp.lang.python, he

[Python-Dev] IPv6 hostname resolution using socket.getaddrinfo()

2007-09-17 Thread O.R.Senthil Kumaran
To get the hostname, I can use socket.gethostbyname() but that has an inherent limitation wherein does it not support IPv6 name resolution, and getaddrinfo() should be used instead. Looking up the socket.getaddrinfo() documentation, I come to know that The getaddrinfo() function returns a list of