mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alwyn Schoeman <alwyn.schoe...@gmail.com>
Subject Re: How can I configure multiple decoders in MINA?
Date Sat, 19 May 2007 18:29:27 GMT

I agree with mat-29.

In order for DemuxingProtocolCodecFactory to call a specific Decoder or
Encoder, it will need to know what the type of the message is.

Question is, how does it know?

Does it assume a specific value at a specific offset in the data stream? 

Does it call all the Decoders in sequence until a Decoder acknowledges that
it is meant for it?  (Hope not)

Can you specify the matching logic in the extending class?

Assume you have to handle different messages from different established
protocols (cannot redesign), how would you handle that?



-- 
View this message in context: http://www.nabble.com/How-can-I-configure-multiple-decoders-in-MINA--tf3561571.html#a10699327
Sent from the mina dev mailing list archive at Nabble.com.


Mime
View raw message