method
new
v1_9_1_378 -
Show latest stable
- Class:
Resolv::DNS::Requester::TCP
new(host, port=Port)public
No documentation available.
# File lib/resolv.rb, line 727
def initialize(host, port=Port)
super()
@host = host
@port = port
@sock = TCPSocket.new(@host, @port)
@sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
@senders = {}
end