From: E F van de Laar Date: 2003-07-02T19:54:25+09:00 Subject: Errno::ECONNREFUSED equivalent on WIN32? Ruby gurus, I'm trying out my Ruby app on win32. It does socket i/o. In trying to locate the equivalent Errno::ECONNREFUSED I came across the following: U:\>ruby -v -e "require 'socket'; s = TCPSocket::new('localhost', 2000);" ruby 1.8.0 (2003-05-26) [i386-mswin32] -e:1:in `initialize': The printer queue is full. - connect(2) (Errno::E061) from -e:1:in `new' from -e:1 Port 2000 is off course not listening, but why does it tell me my printer queue is full. :) Errno:E061 looks a lot like Errno::E10061 which is what I am looking for and is also not defined. U:\>ruby -v -e "require 'socket'; p Errno::E10061;" ruby 1.8.0 (2003-05-26) [i386-mswin32] -e:1: uninitialized constant E10061 at Errno (NameError) This is on MS Windows 2000; 5.00.2195; SP3 using the Ruby Installer for Windows. Any insight would be appreciated. Thanks, Emiel -- E F van de Laar +31648183479 www.il.fontys.nl/~emiel