Class: TCPSocket

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

Direct Known Subclasses

SOCKSSocket

Instance Method Summary collapse

Methods inherited from IPSocket

getaddress, original_resolver_getaddress

Constructor Details

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

:startdoc:


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

def initialize(host, serv, *rest)
  rest[0] = IPSocket.getaddress(rest[0]) if !rest.empty? and rest[0]
  original_resolver_initialize(IPSocket.getaddress(host), serv, *rest)
end

Instance Method Details

#original_resolver_initializeObject

:stopdoc:


21
# File 'lib/resolver_replace/replace.rb', line 21

alias original_resolver_initialize initialize