Re: [perl #75740] IPv6 support missing in perl5.10, perl5.12

[email protected] ("Curtis Jewell")
Newsgroups perl.perl5.porters
Message-ID <[email protected]>

On Tue, 15 Jun 2010 10:00 +0200, "Rafael Garcia-Suarez"
<[email protected]> wrote:
> On 14 June 2010 18:39, [email protected] <[email protected]> wrote:
> > What's missing in the CORE:
> > - getaddrinfo (gethostbyname gives only IPv4)
> > - inet_pton, inet_ntop (similar to inet_aton, inet_ntoa but also for
> >  IPv6)
> 
> Note that Configure already probes for those functions.
> 
> > - support for IPv6 in Net::* Modules (Net::SMTP, Net::FTP.. are bound to
> >  use IO::Socket::INET which does not do IPv6)
> > - comfortable use of sockets similar to IO::Socket::INET6
> >
> > What help could CPAN provide:
> > - Socket6 - which provides getaddrinfo, inet_ntop, inet_pton..
> 
> I'd vote against : looking at it, its compilation process is too
> complex, it contains an incomplete implementation of getaddrinfo (used
> when the system has none), and its license is complex.

I want to -1 this as well. (ok, so I'm not a committer yet.)

Reason being that insane compilation process. It did NOT compile on
Strawberry (I wanted to include it in Professional!)

--Curtis

> We could provide instead a bare-bones module that just wraps around
> getaddrinfo, getnameinfo, inet_ntop and inet_pton (maybe other ones).
> 
> What about the IP:: namespace for those ? (or we could also stuff them
> in POSIX::)

NOT POSIX::. But otherwise a good idea.

--Curtis Jewell
--
Curtis Jewell
[email protected]           http://csjewell.dreamwidth.org/
[email protected]   http://csjewell.comyr.org/perl/

"Your random numbers are not that random" -- perl-5.10.1.tar.gz/util.c

Strawberry Perl for Windows betas: http://strawberryperl.com/beta/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.