ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.168 by root, Mon Nov 30 22:22:13 2009 UTC vs.
Revision 1.169 by root, Sat Jan 2 13:02:20 2010 UTC

380 380
381This call tries to make use of a native C<sendfile> syscall to provide 381This call tries to make use of a native C<sendfile> syscall to provide
382zero-copy operation. For this to work, C<$out_fh> should refer to a 382zero-copy operation. For this to work, C<$out_fh> should refer to a
383socket, and C<$in_fh> should refer to mmap'able file. 383socket, and C<$in_fh> should refer to mmap'able file.
384 384
385If the native sendfile call fails or is not implemented, it will be 385If the native sendfile call fails with C<ENOSYS>, C<ENOTSUP>,
386C<EOPNOTSUPP> or C<ENOTSOCK>, or is not implemented, it will be emulated,
386emulated, so you can call C<aio_sendfile> on any type of filehandle 387so you can call C<aio_sendfile> on any type of filehandle regardless of
387regardless of the limitations of the operating system. 388the limitations of the operating system.
388 389
389Please note, however, that C<aio_sendfile> can read more bytes from 390Please note, however, that C<aio_sendfile> can read more bytes from
390C<$in_fh> than are written, and there is no way to find out how many 391C<$in_fh> than are written, and there is no way to find out how many
391bytes have been read from C<aio_sendfile> alone, as C<aio_sendfile> only 392bytes have been read from C<aio_sendfile> alone, as C<aio_sendfile> only
392provides the number of bytes written to C<$out_fh>. Only if the result 393provides the number of bytes written to C<$out_fh>. Only if the result

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines