I have a complex protocol to implement and I have started modifying the
sumup example.
My protocol consists of messages all of then sent in and envelope like
this:
4 bytes: size of data
N bytes: the data
1 byte: tail mark.
Then each message inside the envelope (the data), contains a header byte
with the type of message flllowed by the rest of fields of the message.
My question is: should i implement a stack of two protocol filters, one for
the envelope (like the TextLineCodec), and other for the message data itself
(perhaps a DemuxingProtocolCodec)?
Thanks in advance.
_________________________________________________________________
Grandes éxitos, superhéroes, imitaciones, cine y TV...
http://es.msn.kiwee.com/ Lo mejor para tu móvil.