Net::INET6Glue::INET_is_INET6 - make L<IO::Socket::INET> behave like L<IO::Socket::INET6>


NAME

Net::INET6Glue::INET_is_INET6 - make the IO::Socket::INET manpage behave like the IO::Socket::INET6 manpage


SYNOPSIS

 use Net::INET6Glue::INET_is_INET6;
 use LWP::Simple;
 print get( 'http://[::1]:80' );
 print get( 'http://ipv6.google.com' );


DESCRIPTION

Many modules directly create the IO::Socket::INET manpage sockets or have it as a superclass. Because the IO::Socket::INET manpage has no support for IPv6 these modules don't have it either.

This module tries to make the IO::Socket::INET manpage behave like the IO::Socket::IP manpage (with fallback to the IO::Socket::INET6 manpage) by copying the symbol table from the IO::Socket::IP manpage into the IO::Socket::INET manpage. The original symbol table from the IO::Socket::INET manpage is still available in the IO::Socket::INET4 manpage.

This strategy works for the Net::SMTP manpage, LWP and probably a lot of other modules too, which don't try to depend too much on the innards of the IO::Socket::INET manpage or on the text representation of IP addresses (IPv6 addresses look different than IPv4 addresses).


COPYRIGHT

This module is copyright (c) 2008..2014, Steffen Ullrich. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.

 Net::INET6Glue::INET_is_INET6 - make L<IO::Socket::INET> behave like L<IO::Socket::INET6>