Great info. What I am looking for is a way to read in text (FTP Commands),
and send text (responses) and binary (requested files). What I currently
have is a protocol handler that extends IoHandlerAdapter. This class sets
up a session filter using the following command:
private static IoFilter CODEC_FILTER = new ProtocolCodecFilter(new
TextLineCodecFactory());
...
session.getFilterChain().addLast("codec", CODEC_FILTER);
The problem is, how can I get my protocol handler to write a file back to
the client? The only thing that I have found is to use a StreamIoHandler,
but then I cannot figure out how to read the FTP commands.
Thanks.
On 8/20/06, peter royal <[EMAIL PROTECTED]> wrote:
On Aug 17, 2006, at 11:47 PM, Mark wrote:
> Basically, by the time the FTP Server is done, I will have to
> support text
> and binary over the same connection, and support sessions. Trying
> to figure
> out what is the best I/O class for this.
>
> ideas??
Sessions are the MINA IoSession.
For text and binary.. There's probably some sort of state-machine on
the server side? Both are just bytes to MINA, really.
-pete
--
[EMAIL PROTECTED] - http://fotap.org/~osi