Thanks Ashish! Now I have some directions to think/try. Also I just learnt from your comment that IoFilters is lighter-weight than Protocol Encoder/Decoder.
Sorry I still can't anwser my original question: which one to use? It sounds like pretty hard for me to orgnize these pieces: We can see 3 data types in 3 layers like this: IoBuffer -> LowLayerPacket -> HighLayerPacket IoBuffer <- LowLayerPacket <- HighLayerPacket Let's assume LowLayerPacket is fixed length 400 bytes with 8 bytes of header. HighLayerPacket can be made of any number of LowLayerPackets. HighLayerPacket has its own header and tailer. It'll be great if any one can post some pseudocode to make this task easier to understand/implement. thx! -- View this message in context: http://www.nabble.com/implement-2-layer-app-protocol-with-each-higher-big-packet-split-to-multiple-lower-small-packets-tp22021384p22035311.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
