Sha256: a3c97d85aecb0b699d27b0fe152d339ae0a276dcd0d98541614f884ad476d34e
Contents?: true
Size: 1018 Bytes
Versions: 3
Compression:
Stored size: 1018 Bytes
Contents
# -*- encoding: binary -*- require 'socket' module Kgio # The IPv4 address of UNIX domain sockets, useful for creating # Rack (and CGI) servers that also serve HTTP traffic over # UNIX domain sockets. LOCALHOST = '127.0.0.1' # Kgio::PipeMethods#kgio_tryread and Kgio::SocketMethods#kgio_tryread will # return this constant when waiting for a read is required. WaitReadable = :wait_readable # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will # return this constant when waiting for a read is required. WaitWritable = :wait_writable end require 'kgio_ext' # use Kgio::Pipe.popen and Kgio::Pipe.new instead of IO.popen # and IO.pipe to get PipeMethods#kgio_read and PipeMethod#kgio_write # methods. class Kgio::Pipe < IO include Kgio::PipeMethods class << self # call-seq: # # rd, wr = Kgio::Pipe.new # # This creates a new pipe(7) with Kgio::Pipe objects that respond # to PipeMethods#kgio_read and PipeMethod#kgio_write alias new pipe end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kgio-1.3.1 | lib/kgio.rb |
kgio-1.3.0.1.gd225 | lib/kgio.rb |
kgio-1.3.0 | lib/kgio.rb |