method
new
v1_9_1_378 -
Show latest stable
- Class:
Resolv::DNS::Requester::UnconnectedUDP
new()public
No documentation available.
# File lib/resolv.rb, line 643
def initialize
super()
@sock = UDPSocket.new
@sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
DNS.bind_random_port(@sock)
end