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.6.0 test/test_tcp6_client_read_server_write.rb
kgio-2.5.0 test/test_tcp6_client_read_server_write.rb
kgio-2.4.2 test/test_tcp6_client_read_server_write.rb
kgio-2.4.1 test/test_tcp6_client_read_server_write.rb
kgio-2.4.0 test/test_tcp6_client_read_server_write.rb
kgio-2.3.3 test/test_tcp6_client_read_server_write.rb
kgio-2.3.2 test/test_tcp6_client_read_server_write.rb
kgio-2.3.1 test/test_tcp6_client_read_server_write.rb
kgio-2.3.0 test/test_tcp6_client_read_server_write.rb
kgio-2.2.0 test/test_tcp6_client_read_server_write.rb