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


Manual Reference Pages  -  SYS::SENDFILE::FREEBSD (3)

.ds Aq ’

NAME

Sys::Sendfile::FreeBSD - Wrapper for the FreeBSD sendfile(2) function.

CONTENTS

SYNOPSIS

use Sys::Sendfile::FreeBSD qw(sendfile);

open(F, file.txt); my $socket = IO::Socket::INET->new(PeerAddr => 127.0.0.1:1234); my $offset = 0; my $bytes_sent = 0; my $result = sendfile(fileno(F), fileno($socket), $offset, (stat("file.txt))[7], $bytes_sent); close(F); close($sock);

DESCRIPTION

Uses the FreeBSD sendfile(2) function to send the contents of an open file handle directly to an open socket. See the sendfile(2) manual page for more details.

Note that this module does not currently support the header/trailer functionality of the sendfile(2) function, nor does it allow the flags argument to be set.

AUTHOR

Mark Imbriaco <mark.imbriaco@pobox.com>

COPYRIGHT

This module is Copyright (c) 2006 Mark Imbriaco.

All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. If you need more liberal licensing terms, please contact the maintainer.

WARRANTY

This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.

SEE ALSO

Sys::Syscall by Brad Fitzpatrick.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SYS::SENDFILE::FREEBSD (3) 2006-09-04

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