GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paranoid::Network::Socket(3) User Contributed Perl Documentation Paranoid::Network::Socket(3)

Paranoid::Network::Socket - Socket wrapper for seemless IPv6 support

$Id: lib/Paranoid/Network/Socket.pm, 2.08 2020/12/31 12:10:06 acorliss Exp $

  # use Socket; # no longer needed
  use Paranoid::Network::Socket;
  use Paranoid::Network::Socket qw(:crlf);

  $ipv6_enabled = has_ipv6();

This module is a wrapper for Socket(3) and Socket6(3), and is meant to be used in lieu of using those packages directly. Doing so removes any of the version dependent support issues on Perl and its bundled Socket(3) where IPv6 is concerned.

Starting in Perl 5.12 the beginnings of IPv6 support emerged in the bundled Socket(3) module, but full IPv6 support didn't arrive until 5.14. Prior versions of Perl required the use of the external Socket6(3) module (available on CPAN).

With this module IPv6 support, if available, is brought in automatically at runtime, regardless of where that support is provided. It also makes a default export of inet_pton and inet_ntop, something that Socket(3) only does on request.

Finally, this module provides a has_ipv6 function which will return whether your Perl has full IPv6 support. Full support is determined by the presence of sockaddr_in6.

All of the regular tag sets provided by either Socket modules are supported by this module.

This module exports the following symbols by default:

    has_ipv6 @Socket::EXPORT

The following specialized import lists also exist:

    List        Members
    --------------------------------------------------------
    all         @defaults @Socket::EXPORT_OK

NOTE: As a substitute for using Socket directly, this also passes on all the specialized targets of that module.

    $ipv6_enabled = has_ipv6();

Returns a boolean value denoting whether or not this module has full IPv6 support.

o
Socket
o
Socket6 (optional)

Arthur Corliss (corliss@digitalmages.com)

This software is free software. Similar to Perl, you can redistribute it and/or modify it under the terms of either:

  a)     the GNU General Public License
         <https://www.gnu.org/licenses/gpl-1.0.html> as published by the 
         Free Software Foundation <http://www.fsf.org/>; either version 1
         <https://www.gnu.org/licenses/gpl-1.0.html>, or any later version
         <https://www.gnu.org/licenses/license-list.html#GNUGPL>, or
  b)     the Artistic License 2.0
         <https://opensource.org/licenses/Artistic-2.0>,

subject to the following additional term: No trademark rights to "Paranoid" have been or are conveyed under any of the above licenses. However, "Paranoid" may be used fairly to describe this unmodified software, in good faith, but not as a trademark.

(c) 2005 - 2020, Arthur Corliss (corliss@digitalmages.com) (tm) 2008 - 2020, Paranoid Inc. (www.paranoid.com)

2020-12-31 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.