mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <elihusma...@gmail.com>
Subject Re: Splitting TextLine codec and PrefixedString codec into two layers
Date Fri, 07 Dec 2007 02:45:11 GMT
sounds good to me...  +1


On Dec 6, 2007 9:42 PM, Trustin Lee <trustin@gmail.com> wrote:

> Hi,
>
> As you know, MINA 2.0 allows you to stack multiple protocol codec
> filters to help you implement multi-layered protocols.
>
> Yesterday, Maarten added PrefixedString codec which is similar to
> TextLine codec.  During talking to David Lloyd, I realized that the
> only difference between them is just in how they frame packets.  The
> part that reads a string doesn't differ at all.  Therefore, it might
> be a good idea to reorganize these codecs into the following layout:
>
> +--------------------------------------------------------------------+
> |                             String codec                           |
> +-----------------------------------+--------------------------------+
> | Delimiter-based msg framing codec | Length-based msg framing codec |
> +-----------------------------------+--------------------------------+
>
> The advantage of this redesign is that users who doesn't need String
> conversion still can get help of the message framing codecs.  WDYT?
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>



-- 
--------------------------------
The adjuration to be "normal" seems shockingly repellent to me; I see
neither hope nor comfort in sinking to that low level. I think it is
ignorance that makes people think of abnormality only with horror and allows
them to remain undismayed at the proximity of "normal" to average and
mediocre. For surely anyone who achieves anything is, essentially, abnormal.
    Dr. Karl Menninger

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message