Sys-Sendfile-OSX
view release on metacpan or search on metacpan
my $socket_fh = IO::Socket::INET->new(
PeerHost => "10.0.0.1",
PeerPort => "8080"
);
my $rv = sendfile($local_fh, $socket_fh);
# DESCRIPTION
The sendfile() function is a zero-copy function for transferring the
contents of a filehandle to a streaming socket.
As per the man pages, the sendfile() function was made available as of Mac
OS X 10.5.
# Sys::Sendfile
Why would you use this module over [Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile)? The answer is: you
probably wouldn't. [Sys::Sendfile](https://metacpan.org/pod/Sys::Sendfile) is more portable, and supports more
platforms.
lib/Sys/Sendfile/OSX.pm view on Meta::CPAN
my $socket_fh = IO::Socket::INET->new(
PeerHost => "10.0.0.1",
PeerPort => "8080"
);
my $rv = sendfile($local_fh, $socket_fh);
=head1 DESCRIPTION
The sendfile() function is a zero-copy function for transferring the
contents of a filehandle to a streaming socket.
As per the man pages, the sendfile() function was made available as of Mac
OS X 10.5.
=head1 Sys::Sendfile
Why would you use this module over L<Sys::Sendfile>? The answer is: you
probably wouldn't. L<Sys::Sendfile> is more portable, and supports more
platforms.
( run in 0.239 second using v1.01-cache-2.11-cpan-4d50c553e7e )