Noah
11/8/2003 10:22:00 PM
Hi all, I'm new to Ruby; I have done some Python and Perl in the past, but
just started with Ruby a few days ago.
Anyhow, when I try to open a new TCPSocket connection like so:
t = TCPSocket.new('localhost', 'http')
print t.gets
t.close
I get the following error:
socktest.rb:1:in `new': No such file or directory (Errno::ENOENT)
from socktest.rb:1
What am I doing wrong? If I make a new socket on a port where I don't have
a service listening, it will give the expected error about the target
machine refusing the connection.
ruby 1.6.8 (2002-12-24) [i586-mswin32] on WinXP-Pro
Thanks in advance,
-Noah