kgio.git about / heads / tags kinder, gentler I/O for Ruby
blob eb6933e638309958d2513b9cd8b16e263d452dad 303 bytes (raw) $ git show 2.4-stable:test/test_tcp_server.rb # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require './test/lib_server_accept' class TestKgioTCPServer < Test::Unit::TestCase def setup @host = ENV["TEST_HOST"] || '127.0.0.1' @srv = Kgio::TCPServer.new(@host, 0) @port = @srv.addr[1] end def client_connect TCPSocket.new(@host, @port) end include LibServerAccept end
git clone git://yhbt.net/kgio.git git clone https://yhbt.net/kgio.git