repo.or.cz
/
kgio.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
test_tcp*read_write: use blocking kgio_accept in setup
[kgio.git]
/
test
/
test_tcp_client_read_server_write.rb
blob
13714e92984bdf46b3f841579869638c76265141
1
require './test/lib_read_write'
2
3
class TesTcpClientReadServerWrite < Test::Unit::TestCase
4
def setup
5
@host = ENV["TEST_HOST"] || '127.0.0.1'
6
@srv = Kgio::TCPServer.new(@host, 0)
7
@port = @srv.addr[1]
8
@wr = Kgio::TCPSocket.new(@host, @port)
9
@rd = @srv.kgio_accept
10
end
11
12
include LibReadWriteTest
13
end