Hi,

I have a simple script which sets up a SocketFactory and gets
connections. What I'd like to do is process individual characters as
they are types (ie NOT waiting for a newline). I've tried Blocks with
a size of 1 or using Streams, but it's still not working. It's
possible that I need to mess with the terminal or socket somehow, but
I'm out of ideas. How would I get it to work?
http://astray.com/poe_server.pl.txt

ie instead of the following output (where I type 'o' and then 'p' and
then return and then Control-C):

$ nc localhost 31008
[acme@piglet acme]$ nc localhost 31008
Hello, client!
op
Left!
Right!
 punt!

I want the output to be:
$ nc localhost 31008
[acme@piglet acme]$ nc localhost 31008
Hello, client!
oLeft!
pRight!
 punt!

Cheers, Leon
-- 
Leon Brocard.............................http://www.astray.com/
Iterative Software...........http://www.iterative-software.com/

... Barium: what you do with dead chemists

Reply via email to