1 # -*- encoding: binary -*-
4 # See the {README}[link:index.html]
7 # The IPv4 address of UNIX domain sockets, useful for creating
8 # Rack (and CGI) servers that also serve HTTP traffic over
10 LOCALHOST = '127.0.0.1'
12 # Kgio::PipeMethods#kgio_tryread and Kgio::SocketMethods#kgio_tryread will
13 # return :wait_readable when waiting for a read is required.
14 WaitReadable = :wait_readable
16 # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will return
17 # :wait_writable when waiting for a read is required.
18 WaitWritable = :wait_writable
23 # use Kgio::Pipe.popen and Kgio::Pipe.new instead of IO.popen
24 # and IO.pipe to get PipeMethods#kgio_read and PipeMethod#kgio_write
27 include Kgio::PipeMethods
32 # rd, wr = Kgio::Pipe.new
34 # This creates a new pipe(7) with Kgio::Pipe objects that respond
35 # to PipeMethods#kgio_read and PipeMethod#kgio_write
40 class Kgio::File < File # :nodoc:
41 attr_reader :path # cf. set_file_path