directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [MINA] protocol with long messages
Date Mon, 19 Sep 2005 21:55:16 GMT
Hi Fabien,

2005/9/20, Fabien Le Floc'h <logos01@gmail.com>:
> 
> I am very new to MINA. I am excited since it has lots of good ideas. I was 
> wondering if the ProtocolHandler was adapted to process very long messages. 
> In those cases, you don't want to pass the message content, you would like 
> to stream it. I don't exactly see how this kind of protocol would fit in the 
> MINA Protocol vision when looking at the MINA tutorial (only documentation), 
> as you might want to know when a part of the message is read (header for 
> example), and stream the remaining (body). 
> 
> I see a way in one example, using StreamIoHandler, maybe it would be nice 
> if this was documented?


There is an HTTP server example that will help you. :)

If you're not going to use StreamIoHandler, you could implement your codec 
to write the content of the body to a file and to generate a message which 
contains that file. WDYT?

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message