[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01687] Re: gethostbyname?

From: Dave Thomas <Dave@...>
Date: 2000-03-02 15:22:45 UTC
List: ruby-talk #1687
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:

> gethostbyname seems to be a method of IPSocket and Socket only.
> What is the correct way to invoke it in ruby?  Everything I have tried 
> tells me thee is no data for the machine I am on, although nslookup
> shows its existence correctly.

There's TCPSocket.gethostbyname() and TCPSocket.getaddress().

Dave

In This Thread