Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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
Replies are listed 'Best First'.
Re^2: How best to support IPv4/v6 in Perl server
by VinsWorldcom (Vicar) 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 browsing the Monastery: (9)
As of 2015-07-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls