Yukihiro Matsumoto
10/3/2004 11:28:00 PM
Hi,
In message "Re: Socket::gethostbyname()"
on Sun, 3 Oct 2004 15:04:56 +0900, CarlosRivera <CarlosRivera@badnamefornospam.to> writes:
|
|I have done the following:
|
|irb(main):103:0> response = Socket::gethostbyname('www.ebay.com')
|=> ["pages.ebay.com", [], 2,
|"\020\002\000\000B\207\300X\000\000\000\000\000\000\000\000",
|"\020\002\000\000B\207\320X\000\000\000\000\000\000\000\000",
|"\020\002\000\000B\207\320e\000\000\000\000\000\000\000\000",
|"\020\002\000\000B\207\300W\000\000\000\000\000\000\000\000"]
|irb(main):104:0>
|
|What exactly are the 4 entries that are after the 2 in the array? From
|looking at the man page for gethostbyname(), it should return something
|resembling:
How about using TCPSocket::gethostbyname instead?
matz.