> I tried something like this:
> 
> loop {
>   data = socket.recv( 100 )
>   puts "Line received"
>   puts data
> }

recv should work--if you receive "" it means teh connection closed.
Cheers!
-=r
-- 
Posted via http://www.ruby-forum.com/.