Choosing a codec handler implementation
hezjing
hezjing at gmail.com
Thu Aug 20 00:40:43 EDT 2009
Hi
I want to encode/decode a message with a fixed length header followed by a
payload of multiple TLVs (Tag-Length-Value).
The header will tell the message type, as well as the total size of the
payload.
How do you suggest to implement this kind of codec?
I'm thinking to have one handler that is to encode/decode the fixed length
header, and wait for the entire payload,
followed by another handler for the payload.
Do you think this is right way?
I'm still studying the Netty handler though, hoping to get a earlier
direction :-)
--
Hez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090820/0cd7d241/attachment.html
More information about the netty-users
mailing list