Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A cross-platform library to use named pipe

branch: master

Merge pull request #1 from capotej/patch-1

Added to_io as a delegator to get access to the internal io object for a
latest commit b6d9098ff0
shura authored May 26, 2011
Octocat-spinner-32 ext First commit September 16, 2010
Octocat-spinner-32 lib Added to_io as a delegator to get access to the internal io object fo… May 26, 2011
Octocat-spinner-32 README.md Failtypo September 16, 2010
Octocat-spinner-32 ruby-fifo.gemspec Failtypo September 16, 2010
README.md

FIFO

A simple library multiplatform to handle named pipe, works like File.

Reader Example: pipe = Fifo.new('/path/to/file') #non-blocking # OR # pipe = Fifo.new('/path/to/file', :r, :wait) #blocking

pipe.read(2)
pipe.getc
pipe.gets
pipe.readline

Writer Example: pipe = Fifo.new('/path/to/file', :w, :nowait) #non-blocking # OR # pipe = Fifo.new('/path/to/file', :w, :wait)

pipe.write "HI"
pipe.print "X"
pipe.puts "OH", "HAI"
Something went wrong with that request. Please try again.