Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How best to support IPv4/v6 in Perl server

by Anonymous Monk
on Jan 26, 2012 at 17:18 UTC ( #950170=note: print w/ replies, xml ) Need Help??


in reply to How best to support IPv4/v6 in Perl server

That's easy. If you have Perl 5.14 or later, use IO::Socket::INET (core module, IP-dualstack). Any other Perl, install and use IO::Socket::IP (CPAN module, IP-dualstack).


Comment on Re: How best to support IPv4/v6 in Perl server
Re^2: How best to support IPv4/v6 in Perl server
by VinsWorldcom (Priest) on Jan 26, 2012 at 17:23 UTC

    Didn't realize that - so in 5.14 and on, IO::Socket::INET *includes* IPv6?

    Of course, as you point out, that won't be backward compatible, I'll still need to 'use' IO::Socket::IP or IO::Socket::INET6 for older Perl versions.

    Thanks!

    Anyone else have an opinion?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-07-12 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls