Class: IPSocket

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

Direct Known Subclasses

TCPSocket, UDPSocket

Class Method Summary collapse

Class Method Details

.getaddress(host) ⇒ Object

:startdoc:


9
10
11
12
13
14
15
16
# File 'lib/resolver_replace/replace.rb', line 9

def getaddress(host)
  begin
    host = ResolverReplace.getaddress(host).to_s if host and host != ""
    return host
  rescue ResolverReplace.error_class => e
    raise SocketError, "#{e.class} #{e.message}"
  end
end

.original_resolver_getaddressObject

:stopdoc:


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

alias original_resolver_getaddress getaddress