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:



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

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:



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

alias original_resolv_initialize initialize