kgio.git  about / heads / tags
kinder, gentler I/O for Ruby
blob 96769b1ce69b0de3af5771ba39cfa13a234e6524 412 bytes (raw)
$ git show rbx-wip:test/test_unix_server.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
require 'tempfile'
require 'tmpdir'
require './test/lib_server_accept'

class TestKgioUNIXServer < Test::Unit::TestCase

  def setup
    @tmpdir = Dir.mktmpdir('kgio_unix_2')
    tmp = Tempfile.new('kgio_unix_2', @tmpdir)
    @path = tmp.path
    tmp.close!
    @srv = Kgio::UNIXServer.new(@path)
    @host = '127.0.0.1'
  end

  def client_connect
    UNIXSocket.new(@path)
  end

  include LibServerAccept
end

git clone git://yhbt.net/kgio.git
git clone https://yhbt.net/kgio.git