1 # -*- encoding: binary -*-
5 # The IPv4 address of UNIX domain sockets, useful for creating
6 # Rack (and CGI) servers that also serve HTTP traffic over
8 LOCALHOST = '127.0.0.1'
10 # Kgio::PipeMethods#kgio_tryread and Kgio::SocketMethods#kgio_tryread will
11 # return this constant when waiting for a read is required.
12 WaitReadable = :wait_readable
14 # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will
15 # return this constant when waiting for a read is required.
16 WaitWritable = :wait_writable
21 # use Kgio::Pipe.popen and Kgio::Pipe.new instead of IO.popen
22 # and IO.pipe to get PipeMethods#kgio_read and PipeMethod#kgio_write
25 include Kgio::PipeMethods
30 # rd, wr = Kgio::Pipe.new
32 # This creates a new pipe(7) with Kgio::Pipe objects that respond
33 # to PipeMethods#kgio_read and PipeMethod#kgio_write