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:



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

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

Instance Method Details

#original_resolv_initializeSOCKSSocket

:startdoc: :stopdoc:

Returns:



69
70
71
# File 'lib/resolv-replace.rb', line 69

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