FrameDecoder Problem

Trustin Lee trustin at gleamynode.net
Mon Jan 19 11:23:07 EST 2009


Hi Tom,

If you are interested in when FrameDecoder calls the decode() or
decodeLast() method, please refer to the source code:

    * http://tinyurl.com/8tg8ya

HTH,

— Trustin Lee, http://gleamynode.net/



On Thu, Jan 15, 2009 at 1:09 PM, Tom Cheung <tom.cheung at gmail.com> wrote:
>
> Just discovered that, when FrameDecoder can return an Object,
> FrameDecoder.decode will be called again immediately. And if the
> FrameDecoder return a null, FrameDecoder.decode will be called one more
> time, and if this time is also null, FrameDecoder.decode will not be called
> again until there is new incoming buffer.
> Thanks.
>
>
> Tom Cheung wrote:
>>
>> My case:
>> Every messageReceived will carry several Object that I need to return,
>> however the current design of FrameDecoder only support to return a single
>> Object, should I return an ArrayList instead? Any potential problem if I
>> do so? Thanks.
>>
>
> --
> View this message in context: http://n2.nabble.com/FrameDecoder-Problem-tp2160761p2160788.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
>




More information about the netty-users mailing list