Hi,

I'm just starting out with Ruby, and trying
the examples on the 'Programming Ruby' book.
I'm running ruby from the self-installer from
rubycentral.com website (1.6.1) on a Win98
machine behind a firewall.

Network commands like Net::HTTP.open,
TCPServer.open, TCPSocket.open, etc are
giving the following error message:

Errno:ENOTSOCK: The descriptor is a file, not a
socket - "connect(2)"

e.g. these would fail
  Net::HTTP.start('www.ibm.com',80)
  Net::TCPSocket.new('localhost','echo')

I am able to resolve addresses properly
(IPSocket.getaddress works), but any session-like
command is bombing.  If this is a firewall
related problem, do I need to specify a
proxy server somewhere (how)?  Other network
stuff like Netscape, IE, Rebol, etc run
fine - although they do require me to
specify the proxy.

Thanks in advance!

Li-Te


Sent via Deja.com
http://www.deja.com/