Hidetoshi NAGAI
1/22/2009 4:57:00 AM
From: Tim Mcd <tmcdowell@gmail.com>
Subject: Ruby/tk slow threads?
Date: Sun, 18 Jan 2009 12:59:18 +0900
Message-ID: <238601f32e2265505349c43b58ba1c45@ruby-forum.com>
> inp = connection.recv(100)
> t.insert(:end, inp).see(:end)
t.insert(:end, inp).see(:end) unless inp.empty?
> entry.bind('Return') do ||
> connection.write(entry.value)
connection.write(entry.value + "\n") # ???
Though I don't know the protocol of your server,
does the server need "Return" at end of a command line?
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)