Handling Messages

Christian Migowski chrismfwrd at gmail.com
Tue Jun 29 02:16:35 EDT 2010


Hello,

to be on the safe side, you'd better implement the latter (you're sure
that your program will always only run on this kind of machines? Maybe
a network hop in between is doing things to the packets, ...). After
all, that is why framedecoder and its subclasses exist (construct
whole  messages from multiple received packets)

regards,
christian!

On Mon, Jun 28, 2010 at 7:49 PM, Ankush Bhatiya <ankushb at gmail.com> wrote:
> Hi,
> I have a confusion regarding FrameDecoder. My netty client is receiving
> messages which are 1000 bytes long(My machine's MTU is 1500). For a single
> message how many times decode(ChannelHandlerContext ctx, Channel channel,
> ChannelBuffer buf) method will be called.
> Since message length is less than MTU, my thought is "decode" will be called
> per message, Am I correct or do I have to handle multiple "decode" call
> based on buf.readableBytes().
> Thanks
> Ankush
> _______________________________________________
> 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