> You have to read from your socket.

Ahh!  I get it. (I said that I was green at this.)   I now have it
working except that it is REALLY slow.

> Can you post some more of the code?

Here is my code that is now working:

    require 'socket'
    socket=TCPSocket::open("ip","port")
    out=File.open('/tmp/debug1','w')
    while line=socket.gets
      out.puts(line.chop)
    end
    socket.close
    out.close

Do you have any idea why this would be very slow?  Thanks.

           ... doug

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to