Method: HTTPClient.getaddress

Defined in:
lib/rwd/net.rb

.getaddress(host) ⇒ Object

Raises:



317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/rwd/net.rb', line 317

def self.getaddress(host)
  if not @@hosts.include?(host)
    @@hosts[host]	= ""
    evtimeout(5) do	# ??? Doet 'ut niet?...
      @@hosts[host]	= IPSocket.getaddress(host)
    end
  end

  raise NoAddressException, host	if @@hosts[host].empty?

  @@hosts[host]
end