So, is it true that for the current version, there are no easy way to
implement a sync socket client??
I have the same problem, for server side, it's work greate, but for a sync
client, it's seems helpless...
is it possible to have a new feature for this kind of purpose in the
furture, thanks a lot for this
good framework...

Mark Webb-4 wrote:
> 
> Although you are not using UDP, you can check out my UDP tutorial to get
> insight as to how this would be done.  Here is the link:
> http://mina.apache.org/udp-tutorial.html
> 
> On 6/19/07, 李健 <[EMAIL PROTECTED]> wrote:
>>
>> 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[] request = ...;
>>     socketOutputStream.write(request);
>>     byte[] response = ...
>>     socketInputStream.read(response);
>>     ... // deal response data
>>
>>     Now, for using MINA, I wrote code like this:
>>
>>     ioConnector.bind(address, ioHandler);
>>     ... // get session
>>     session.write(request);
>>
>>     The IoHandler which is binded to the ioConnector will deal response
>> data, but I wanna to get the response data in my client class which sent
>> the
>> request data but not the IoHandler, so my client code can deal response
>> data
>> later after sent its request in one method process.(I'll use VMPipe
>> sometimes, so i must using MINA IoConnector).
>>
>>     who can give me some advice?
>>     can IoHandler pass the response data through the client class which
>> sent the request data?
>>
>>     Thanks.
>>
> 
> 
> 
> -- 
> ..Cheers
> Mark
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-IoHandler-in-ClientSide-tf3949765.html#a11301287
Sent from the mina dev mailing list archive at Nabble.com.

Reply via email to