use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EBUSY',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket connect failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
$s->setsockopt(SOL_SOCKET, SO_SPLICE, pack('i', $ss->fileno()))
or die "splice failed: $!";
- my $so = IO::Socket::INET->new(
+ my $so = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ELOOP',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ENOTCONN',
func => sub {
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EOPNOTSUPP',
func => sub {
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
Listen => 1,
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
use Config;
our %args = (
errno => 'EINVAL',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
-use BSD::Socket::Splice "SO_SPLICE";
+use IO::Socket::IP;
use IO::Socket::UNIX;
+use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EPROTONOSUPPORT',
func => sub {
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "udp",
LocalAddr => "127.0.0.1",
) or die "socket bind failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
use Config;
our %args = (
errno => 'EINVAL',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EBADF',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EBUSY',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket connect failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
$s->setsockopt(SOL_SOCKET, SO_SPLICE, pack('i', $ss->fileno()))
or die "splice failed: $!";
- my $so = IO::Socket::INET->new(
+ my $so = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EINVAL',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ENOTCONN',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ENOTSOCK',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EOPNOTSUPP',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
Listen => 1,
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EPROTONOSUPPORT',
func => sub {
- my $sl = IO::Socket::INET->new(
+ my $sl = IO::Socket::IP->new(
Proto => "tcp",
Listen => 5,
LocalAddr => "127.0.0.1",
) or die "socket listen failed: $!";
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "tcp",
PeerAddr => $sl->sockhost(),
PeerPort => $sl->sockport(),
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "udp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ELOOP',
func => sub {
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "udp",
LocalAddr => "127.0.0.1",
) or die "socket bind failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "udp",
PeerAddr => $s->sockhost(),
PeerPort => $s->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'ENOTCONN',
func => sub {
- my $sb = IO::Socket::INET->new(
+ my $sb = IO::Socket::IP->new(
Proto => "udp",
LocalAddr => "127.0.0.1",
) or die "socket bind failed: $!";
- my $sc = IO::Socket::INET->new(
+ my $sc = IO::Socket::IP->new(
Proto => "udp",
PeerAddr => $sb->sockhost(),
PeerPort => $sb->sockport(),
use strict;
use warnings;
-use IO::Socket;
+use IO::Socket::IP;
use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EPROTONOSUPPORT',
func => sub {
- my $s = IO::Socket::INET->new(
+ my $s = IO::Socket::IP->new(
Proto => "udp",
) or die "socket failed: $!";
- my $ss = IO::Socket::INET->new(
+ my $ss = IO::Socket::IP->new(
Proto => "tcp",
) or die "socket splice failed: $!";
use strict;
use warnings;
-use IO::Socket;
-use BSD::Socket::Splice "SO_SPLICE";
use IO::Socket::UNIX;
+use BSD::Socket::Splice "SO_SPLICE";
our %args = (
errno => 'EPROTONOSUPPORT',