The lower layer communication requires acknowledgement of receiving each
packet.

So in the following method of LowLayerDecoder

public MessageDecoderResult decode(IoSession session, IoBuffer in,
ProtocolDecoderOutput out)

I should use "session" to send back acknowledgement packet, and use "out" to
forword 400 bytes to HighLayerDecoder. Right?  

I've been using mina in its simplest way for years but this time it sounds
like in decode() I have to "write" both to "session" and "out".  Just not
sure I understand these concepts right.

-- 
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-tp22021384p22035706.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to