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

Merge pull request #3 from vilnius-leopold/patch-1

Add markdow to code samples
latest commit c117de54e6
shura authored
Failed to load latest commit information.
ext First commit
lib Added to_io as a delegator to get access to the internal io object fo…
README.md Add markdow to code samples
ruby-fifo.gemspec Failtypo

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.