mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Grundvig" <m...@electrotank.com>
Subject Re: ProtocolEncoder/Decoder v.s. MessageEncoder/Decoder
Date Sun, 29 Oct 2006 16:49:13 GMT
I don't know of any recommendations specifically, but I do know that you can 
probably use the TextLine encoder/decoder to implement the first layer of 
your protocol. This has seemed to work with any delimiter-based protocol 
I've tried.

Michael Grundvig
Electrotank, Inc

----- Original Message ----- 
From: "jian wu" <hellojianwu@gmail.com>
To: <mina-dev@directory.apache.org>
Sent: Saturday, October 28, 2006 12:16 PM
Subject: ProtocolEncoder/Decoder v.s. MessageEncoder/Decoder

> Hi,
> Mina provides two types of classes for encoding/decoding protocol data:
> ProtocolEncoder/ProtocolDecoder, and MessageEncoder/MessageDecoder.
> Is there any guideline or recommendation when to use them?
> In my perticular use case, I'm looking into decoding and encoding a
> protocol data with fixed start delimiter and end delimiter but length
> could be varied due to internal data structure.
> Any suggestion would be really appreciated.
> Thanks,
> Jian

View raw message