Tuure Laurinolli-2 wrote:
> 
> 
>>Are there *any* rules that allow detection of message boundaries? For 
>>example, is there a time interval between messages? Is a message always 
>>sent in a single IP packet, and is there enough knowledge of the 
>>underlying protocol stack to assume that there will be no fragmentation?
> 
>>If there is a time interval between messages, you could probably start a 
>>timer when data is received, buffering the data received until the timer 
>>fires, and then pass the buffered data onwards.
> 
> 

The application is conversational in that a request-response is expected 
so yes, there is timing available.

I like the time interval idea but I'm not sure how to insert that into the 
MINA objects (session, filter) life cycle events.  Potentially the session's 
idle timer could be used to detect message boundaries but how does 
one insert that back into the CumulativeProtocolDecoder's event to 
process and complete the message flow through the filter stack?
-- 
View this message in context: 
http://www.nabble.com/CumulativeProtocolDecoder-tp18777497p18828914.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to