Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kgio-sendfile

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kgio-sendfile

  • 1.2.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

kgio-sendfile is a (hopefully temporary) fork of the original "sendfile" gem for Ruby 2.2.0dev compatibility. Only Linux (and maybe FreeBSD) are supported in this version.

Send plain-text email to our mailing list at kgio@librelist.org for anything related to this.

h1. Ruby sendfile(2) Interface

This module allows Ruby programs to access their OS's native sendfile(2) system call from any IO object. Your kernel must export a recognized signature for the sendfile(2) system call to use this module. Currently, that includes Linux, Solaris and FreeBSD.

h2. Installation

Download and install the latest package from the rubyforge.org RubyGems repository.

$ gem install sendfile

If the tests all pass, you're ready to start using sendfile!

h2. Usage

Here's a small example of a use of IO#sendfile.

bc.. require 'socket' require 'rubygems' require 'sendfile' s = TCPSocket.new 'yourdomain.com', 5000 File.open 'somefile.txt' { |f| s.sendfile f } s.close

p. See the test scripts for more examples on how to use this module.

FAQs

Package last updated on 13 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc