hello i was learning about ruby and on the book  i am reading it shows
the part where i can create a chatserver with Gserver

well lookingon the internet shows the server code everywhere.

but when i am trying to do a chat client it always failed on me.
i wouldl ike that it works like a conection with telnet or with netcat.

here is the failling code:

require 'socket'      # Sockets are in standard library

host = 'localhost'
port = 1234

while line = s.gets   # Read lines from the socket
  puts line      # And print with platform line terminator
  s.puts gets
end
s.puts "Connection close!!"
s.close


THANK YOU in advance
-- 
Posted via http://www.ruby-forum.com/.