From: matz@... (Yukihiro Matsumoto) Date: 2001-07-10T16:27:22+09:00 Subject: [ruby-talk:17597] Re: low-level TCP/IP manipulations? Hi, In message "[ruby-talk:17595] Re: low-level TCP/IP manipulations?" on 01/07/10, Wai-Sun Chia writes: |What you want is ECONNREFUSED (see connect(2)) return code, which |unfortunately is not returned in Ruby/Socket. It gives ECONNREFUSED etc.; the switch you've mentioned have no default so that all non listed errors are just passed to the callee. I should have put "default: break" explicitly though. matz.