class Seahorse::Client::H2::Connection

def _tcp_socket(endpoint)

def _tcp_socket(endpoint)
  tcp = ::Socket.new(SOCKET_FAMILY, ::Socket::SOCK_STREAM, 0)
  tcp.setsockopt(::Socket::IPPROTO_TCP, ::Socket::TCP_NODELAY, 1)
  address = ::Socket.getaddrinfo(endpoint.host, nil, SOCKET_FAMILY).first[3]
  sockaddr = ::Socket.sockaddr_in(endpoint.port, address)
  [tcp, sockaddr]
end