kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
5de431b2993badf5460d9ca94be32fb1c7552979 blob 1057 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
# -*- encoding: binary -*-
require 'socket'

# See the {README}[link:index.html]
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 :wait_readable when waiting for a read is required.
  WaitReadable = :wait_readable

  # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will return
  # :wait_writable 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
debug log:

solving 5de431b ...
found 5de431b in https://yhbt.net/kgio.git

kgio RubyGem user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://yhbt.net/kgio-public
	git clone --mirror http://ou63pmih66umazou.onion/kgio-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.kgio
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.kgio

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git