RAA - ruby-sendfile/0.9.2

ruby-sendfile / 0.9.2

Short description: Ruby interface to sendfile(2) system call
Category: Library/IO
Status: beta
Created: 2005-11-17 00:55:24 GMT
Last update: 2006-03-27 19:30:54 GMT
Owner: Toby DiPasquale (Projects of this owner)
Homepage: http://rubyforge.org/projects/ruby-sendfile
Download: http://rubyforge.org/frs/?group_id=1101
License: BSD
Dependency:
None
Description:

Provides the sendfile(2) system call functionality to Ruby scripts on platforms that support it. (FreeBSD, Linux and Solaris)

Use:

wrIO.sendfile( rdIO, offset=0, count=nil) => integer

Transfers count bytes starting at offset from rdIO directly to wrIO. If offset is omitted, transfer starts at the beginning of the file. If count is omitted, the full length of the file will be sent. Returns the number of bytes sent on success. Will throw platform-specific exception on error. (check man sendfile(2) on your platform for information on what errors could result and how to handle them)

Versions: [0.9.2 (2006-03-27)] [0.9.1 (2006-03-26)] [0.0.1 (2005-11-17)]

Edit this project (for project owner)

back to RAA top