A cross-platform library to use named pipe
Switch branches/tags
Nothing to show
Pull request Compare This branch is 28 commits behind shurizzle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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"