"Hal E. Fulton" wrote:
> > pigeon% ruby -rsocket -e 'p TCPServer.new("localhost",
> 3333);TCPServer.new("localhost", 3333)'
> > #<TCPServer:0x401b3f50>
> > -e:1:in `new': Address already in use - "bind(2)" (Errno::EADDRINUSE)
> >         from -e:1
> > pigeon%
> 
> Maybe it's a Windows issue. Not sure how the networking stuff
> differs... I think NT is more Unix-like, but I'm using 98 (and
> 1.6.3 cygwin).
> 
> In that environment, this one-liner does not give me an error.

I tried it on mine (win2k, 1.6.4 cygwin), and didn't get an error 
either.  It just gives the first server's id, and doesn't say anything
about the second attempt.

-- 

Jonathan Entner
jonathan.entner / jhuapl.edu