Revision history for Socket

2.020   2015/06/24 14:45:25
         * Provide more IPPROTO constants - IGMP, GRE, ESP, AH, SCTP
         * Provide an SvPVx_nolen wrapper for older perls (<5.8.8) that lack
           it (RT104120)

2.019   2015/04/29 17:05:33
         * Provide emulations of inet_ntop/inet_pton on MSWin32 by using

2.018   2015/02/12 13:42:41
         * Fix for "addr is not a string" test to use SvPOKp() before 5.18

2.017   2015/02/10 12:05:14
         * Added some more SO_* constants defined on Linux (thanks
           Ronald van Dorp)

         * Remember to SvGETMAGIC in getnameinfo() (RT79557)
         * Quiet some compiler warnings (RT101495, RT100736)
         * Fix "Attempt to free unreferenced scalar" warnings (RT78626,

2.016   2014/10/08 21:53:10
         * Wrap configure tests in a {} block in case of C99-deficient
           compilers (RT99363)
         * #include <stddef.h> so that NULL definitely exists (RT98248)
         * Need to pass NI_NUMERICSERV during unit tests for some OSes not to
           error (VMS) (RT98217)

2.015   2014/08/15 23:27:07
         * Test multiple possibnle portnum->name lookups in case /etc/services
           lacks one (RT96874)
         * Stronger kill in unit-test for cygwin (RT97773)
         * Don't try to assert the result of getnameinfo() to match
           gethostbyaddr() or getservbyport() (RT77248)
         * Ensure that 'socktype' hint is always passed to getaddrinfo during
           unit-testing (RT96274)
         * Fix regexp borrowed from Regexp::Common::net (RT96274)

2.014   2014/06/01 00:09:13
         * Make sure to (UV)-cast arguments sprintf'ed with UVf
         * Use STRUCT_OFFSET() instead of plain C99 offsetof() (RT96036)
         * Fix the regexp used to filter for numeric IP addresses in
           fake_getaddrinfo() (RT95758)
         * Protect against getprotobyname() not being available (RT90217)

2.013   2013/10/28 00:49:43
         * Unit-test bugfixes for VMS (RT89766):
            + Need to pass protocol => IPPROTO_TCP to avoid SCTP as well
            + Perform AI_NUMERICHOST test against non-"localhost"
            + May have to set NI_NUMERICSERV flag if it fails without
           (thanks Craig A. Berry)

2.012   2013/09/03 13:20:09
         * <ws2tcpip.h> is not needed on WinCE (RT87389)
         * "#undef interface" to avoid issues from Windows' <ole2.h> (RT87389)

2.011   CHANGES:
         * Handle FreeBSD (or other platforms) returning shorter AF_UNIX
           sockaddr structures due to embedded sun_len (RT86613)
           (thanks Maxime Soulé; MAXS)

2.010   CHANGES:
         * Wrap some IPTOS_* constants, which may come from <netinet/ip.h>
         * Probe for and optionally include <netinet/ip.h>
         * Defeat C compilers' attempts to optimise away configure-time probes
           for functions that are never called

2.009   CHANGES:
         * Fix building in core by skipping check_for() as it doesn't work
           there (RT82760)

2.008   CHANGES:
         * Fix uninitialised memory read (RT82119)

2.007   CHANGES:
         * Test %Config keys for definedness, not mere existence (RT79854)
         * Fix missing argument in sprintf in Socket.xs (from perl.git
           5d6dfea82e1c4b6, RT82007)

2.006   CHANGES:
         * Fix AF_INET6 test skip counts in t/sockaddr.t (RT79071)
         * Define mPUSHs() as it's lacking before 5.10.1

2.005   CHANGES:
         * Have unpack_sockaddr_in{,6} return just the IP address in scalar
         * Guard against incorrect length scalars being passed in to inet_ntop

2.004   BUGFIXES:
         * Put skip() arguments the right way around in t/ip_mreq.t (RT78986)

 ** Do not use; see 2.004 **
2.003   CHANGES:
         * Added IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP
         * Added constants and functions required for IP multicast source
           group membership

2.002   CHANGES:
         * Wrap Linux's SOCK_NONBLOCK and SOCK_CLOEXEC constants
         * Added sockopt constants and structure handling functions for IPv4
           multicast (also with thanks to Christian Walde for help on MSWin32)

2.001   CHANGES:
         * Apply (modified) patch from to fix memory
           addressing bug with Zero() - RT76067
         * Document that inet_pton() doesn't work on hostnames, only textual
           addresses - RT76010
         * Ignore any existing-but-undefined hints hash members to

2.000   CHANGES:
         * Apply (modified) patch from rurban to fix memory overflow bug with
           sockaddr_un() - RT75623
         * Increase to three-digit version suffix in new major version

1.99    CHANGES:
         * Better implementation of inet_pton() that sets correct size (RT 75074)
         * Added SO_DOMAIN
         * More robust unit tests of address-mangling functions

1.98    CHANGES:
         * Detect presence of sockaddr_in6 and ipv6_mreq; conditionally build
           pack/unpack functions on this
         * Back-compatibility improvements for older perls, back as far as
           5.6.1 (thanks Zefram)
         * Fix for picky compilers or platforms on which size_t doesn't
           printf() correctly by %d
         * Suppress some harmless compile-time warnings about unused variables

1.97    CHANGES:
         * Rewritten Makefile.PL configure-time logic to use only core's
           ExtUtils::CBuilder rather than CPAN's ExtUtils::CChecker
         * Fix implementation of synthesized newSVpvn_flags() to also work on
           threaded 5.10.0
         * Set INSTALLDIRS=perl on perl before 5.11; required as it's
           replacing a core module

1.96    CHANGES:
         * Fix Socket.t to use ok() instead of is() where required - RT73039
         * Complete rewrite of module docs; list all the constants and
           functions, updated SYNOPSIS
         * Added convenient Exporter tag :addrinfo for all the gai/gni-related
         * Provide static synthesized newSVpvn_flags() replacement for older
         * Implement getnameinfo() NIx_NOHOST and NIx_NOSERV extension flags

1.95    CHANGES:
         * Implement the remaining AI_*, EAI_* and NI_* constants from
         * Declare configure-time dependency on ExtUtils::Constants 0.23 for
           when building out of core
         * Initial attempt at dual-life extraction from bleadperl