Skip to content

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

This branch is 27 commits behind shurizzle:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext
lib
README.md
ruby-fifo.gemspec

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.