From: Wai-Sun Chia Date: 2001-07-10T16:34:46+09:00 Subject: [ruby-talk:17598] Re: low-level TCP/IP manipulations? Yukihiro Matsumoto wrote: > 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. > You're absolutely, right. But you can't blame me as I'm used to seeing "default:" in switch statements..(to pass code review all switches MUST have defaults) ;-) -- Wai-Sun "Squidster" Chia Unix/Web Developer/RHCE Professional Services