class IPSocket

Public Class Methods

getaddress(host) click to toggle source
# 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