Class: SOCKSSocket

Inherits:
TCPSocket show all
Defined in:
lib/resolv-replace.rb

Instance Method Summary collapse

Methods inherited from IPSocket

getaddress, original_resolv_getaddress

Constructor Details

#initialize(host, serv) ⇒ SOCKSSocket

:startdoc:



73
74
75
# File 'lib/resolv-replace.rb', line 73

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

Instance Method Details

#original_resolv_initializeSOCKSSocket

:startdoc: :stopdoc:

Returns:



71
72
73
# File 'lib/resolv-replace.rb', line 71

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