From: lite_cheng@... Date: 2001-01-12T00:40:03+09:00 Subject: [ruby-talk:9140] Re: Problems with HTTP.open, TCPServer.open, etc. Never mind - works now... recompiled 1.6.2 via mswin32 and Visual C++. nmake test did fail on SIGINT, but otherwise things look good. In article <93ine8$l0j$1@nnrp1.deja.com>, lite_cheng@my-deja.com wrote: > 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/ > Sent via Deja.com http://www.deja.com/