mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: Using standard streams as IO channels in MINA
Date Fri, 05 May 2006 17:16:12 GMT
On May 5, 2006, at 12:18 PM, Jon Blower wrote:
> Can anyone advise on how best to implement this behaviour using  
> MINA?  Does
> the StreamIoHandler have anything to do with this?  I looked  
> through the
> source code but couldn't quite figure out how to achieve this.

Yes, the StreamIoHandler will bridge between the asynchronous nature  
of MINA and usages that desire synchronous Stream support.

Subclass StreamIoHandler and implement processStreamIo. Be sure to do  
the work on another thread.
-pete

-- 
proyal@apache.org - http://fotap.org/~osi



Mime
View raw message