From: bobh@... (Robert) Date: 2001-09-23T11:42:31+09:00 Subject: [ruby-talk:21577] Re: Socket Scan against network computer "Park Hee-sob" wrote in message news:... > Hi, > > "Robert" wrote in message > news:4a249347.0109200327.5f0a64f9@posting.google.com... > > > > > > The block `ensure' is always executed, even if TCPSocket::open failed. > > > In this case `server' will have the value `nil' and this give the error. > > > > > > Just write > > > > > > server.close if server > > > > I did and: > > > > trying: 0 > > ./socket.rb:5: uninitialized constant TCPSocket (NameError) > > from ./socket.rb:2:in `each' > > from ./socket.rb:2 > > from socket.rb:1:in `require' > > from socket.rb:1 > > If your source file name is 'socket.rb' and code use require 'socket', > in version 1.6.4, above error message occurred. > But in version 1.6.5, it works fine. > > > Park Hee-sob Ah...well I will have to wait for the Windows binary to come out.