How to use IoHandler in ClientSide

2007-06-19 Thread
Hi, I'm developing my application with MINA1.1.0, It's working fine in ServerSide, But I'm confused by using IoHandler in ClientSide. I'll send R1 to the server and its response data is P1 and there will be R2-P2, R3-P3 etc. In the past time, I wrote code like this: byte[] re

Re: How can i deal with the old [DataInputStream & DataOutputStream] client

2007-05-17 Thread
i'v tested to send request like "123" using DataOutputStream byte[] req = "123".getBytes() dataOutputStream.writeInt(req.length); dataOutputStream.write(req); dataOutputStream.flush(); i tried to send this request 10 times, the server received data like this: rece