Class: TCPSocket

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

Direct Known Subclasses

SOCKSSocket

Instance Method Summary collapse

Methods inherited from IPSocket

getaddress, original_resolv_getaddress

Constructor Details

#initialize(host, serv, *rest) ⇒ TCPSocket

:startdoc:



23
24
25
26
# File 'lib/resolv-replace.rb', line 23

def initialize(host, serv, *rest)
  rest[0] = IPSocket.getaddress(rest[0]) if rest[0]
  original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
end

Instance Method Details

#original_resolv_initializeObject

:stopdoc:



21
# File 'lib/resolv-replace.rb', line 21

alias original_resolv_initialize initialize