Class: SOCKSSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/net/dns/resolv-replace.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, serv) ⇒ SOCKSSocket

Returns a new instance of SOCKSSocket.



63
64
65
# File 'lib/net/dns/resolv-replace.rb', line 63

def initialize(host, serv)
  original_resolv_initialize(IPSocket.getaddress(host), port)
end

Instance Method Details

#original_resolv_initializeSOCKSSocket

Returns a new instance of SOCKSSocket.

Returns:



62
63
64
# File 'lib/net/dns/resolv-replace.rb', line 62

def initialize(host, serv)
  original_resolv_initialize(IPSocket.getaddress(host), port)
end