Sha256: 737385a9d11683e76fc0e84323e98149985ca42d7a740abb074e3a6a50e24da3

Contents?: true

Size: 631 Bytes

Versions: 30

Compression:

Stored size: 631 Bytes

Contents

require './test/lib_read_write'

begin
  tmp = TCPServer.new(ENV["TEST_HOST6"] || '::1', 0)
  ipv6_enabled = true
rescue => e
  warn "skipping IPv6 tests, host does not seem to be IPv6 enabled:"
  warn "  #{e.class}: #{e}"
  ipv6_enabled = false
end

class TestTcp6ClientReadServerWrite < Test::Unit::TestCase
  def setup
    @host = ENV["TEST_HOST6"] || '::1'
    @srv = Kgio::TCPServer.new(@host, 0)
    @port = @srv.addr[1]
    @wr = Kgio::TCPSocket.new(@host, @port)
    @rd = @srv.kgio_accept
    assert_equal Socket.unpack_sockaddr_in(@rd.getpeername)[-1], @rd.kgio_addr
  end

  include LibReadWriteTest
end if ipv6_enabled

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
kgio-2.11.2 test/test_tcp6_client_read_server_write.rb
kgio-2.11.1.1.g36ea test/test_tcp6_client_read_server_write.rb
kgio-2.11.1 test/test_tcp6_client_read_server_write.rb
kgio-2.11.0 test/test_tcp6_client_read_server_write.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kgio-2.10.0/test/test_tcp6_client_read_server_write.rb
kgio-2.10.0 test/test_tcp6_client_read_server_write.rb
kgio-2.9.3 test/test_tcp6_client_read_server_write.rb
kgio-2.9.2 test/test_tcp6_client_read_server_write.rb
kgio-2.9.1 test/test_tcp6_client_read_server_write.rb
kgio-2.9.0.2.gf33a test/test_tcp6_client_read_server_write.rb
kgio-2.9.0 test/test_tcp6_client_read_server_write.rb
kgio-2.8.1 test/test_tcp6_client_read_server_write.rb
kgio-2.8.0.2.g30c1 test/test_tcp6_client_read_server_write.rb
kgio-2.8.0 test/test_tcp6_client_read_server_write.rb
kgio-2.7.4 test/test_tcp6_client_read_server_write.rb
kgio-2.7.3 test/test_tcp6_client_read_server_write.rb
kgio-2.7.2 test/test_tcp6_client_read_server_write.rb
kgio-2.7.1 test/test_tcp6_client_read_server_write.rb
kgio-2.7.0.3.gfd1e test/test_tcp6_client_read_server_write.rb
kgio-2.7.0 test/test_tcp6_client_read_server_write.rb