Re: How can I configure multiple decoders in MINA?

2007-05-24 Thread mat
ferent 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.

Re: How can I configure multiple decoders in MINA?

2007-05-22 Thread Trustin Lee
Hi Alwyn, On 5/20/07, Alwyn Schoeman <[EMAIL PROTECTED]> wrote: 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. Each MessageDecoder can determine if the incoming data is for itself or

Re: How can I configure multiple decoders in MINA?

2007-05-19 Thread mat
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 mai

Re: How can I configure multiple decoders in MINA?

2007-05-19 Thread Alwyn Schoeman
: 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.

Re: How can I configure multiple decoders in MINA?

2007-05-09 Thread mat
EMAIL PROTECTED]> wrote: > > > >> > Really? However my server is listening on one port. How > > > messageDecoder > > > >> class > > > >> > knows different type of messages? Can you explain? Thanks. > > > >> > > > >>

Re: How can I configure multiple decoders in MINA?

2007-04-26 Thread mat
n you explain? Thanks. > > >> > > >> It seems like Yogs is talking about creating multiple MessageDecoder > > >> classes? You can register multiple MessageDecoders and > > >> MessageEncoders to DemuxingProtocolCodecFactor

Re: How can I configure multiple decoders in MINA?

2007-04-26 Thread Roman Magarshak
messageDecoder > > >> class > > >> > knows different type of messages? Can you explain? Thanks. > > >> > > >> It seems like Yogs is talking about creating multiple MessageDecoder > > >> classes? You can register multiple MessageDeco

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread mat
otocolCodecFactory. >> >> HTH, >> Trustin >> -- >> what we call human nature is actually human habit >> -- >> http://gleamynode.net/ >> -- >> PGP Key ID: 0x0255ECA6 >> > > -- View this message in context: http://www.nabble.com/How-can-I-configure-multiple-decoders-in-MINA--tf3561571.html#a10183671 Sent from the mina dev mailing list archive at Nabble.com.

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread Yogs
;> classes? You can register multiple MessageDecoders and >> MessageEncoders to DemuxingProtocolCodecFactory. >> >> HTH, >> Trustin >> -- >> what we call human nature is actually human habit >> -- >> http://gleamynode.net/ >> -- >> PGP Key ID: 0x0255

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread mat
In my case, i have to use IF ELSE to judge which protocol, right? 2007/4/25, Trustin Lee <[EMAIL PROTECTED]>: On 4/25/07, mat <[EMAIL PROTECTED]> wrote: > Really? However my server is listening on one port. How messageDecoder class > knows different type of messages? Can you explain? Thanks. I

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread Trustin Lee
On 4/25/07, mat <[EMAIL PROTECTED]> wrote: Really? However my server is listening on one port. How messageDecoder class knows different type of messages? Can you explain? Thanks. It seems like Yogs is talking about creating multiple MessageDecoder classes? You can register multiple MessageDeco

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread Yogs
>> > Could you explain the protocol you want to implement more in detail? >> > Do you just want to merge two codecs into one, or to implement >> > multi-layered protocol? >> > >> > Trustin >> > -- >> > what we call human nature is actually human habit >> > -- >> > http://gleamynode.net/ >> > -- >> > PGP Key ID: 0x0255ECA6 >> > >> >> > > -- View this message in context: http://www.nabble.com/How-can-I-configure-multiple-decoders-in-MINA--tf3561571.html#a10175213 Sent from the mina dev mailing list archive at Nabble.com.

Re: How can I configure multiple decoders in MINA?

2007-04-25 Thread mat
; > > >> > > Hi, >> > > >> > > Can I register more than one Encoders and Decoders to >> > ProtocolCodecFactory >> > > which is extended from mina's DemuxingProtocolCodecFactory? >> > > Or we can have only one decoder and enco

Re: How can I configure multiple decoders in MINA?

2007-04-21 Thread mat
> > > Can I register more than one Encoders and Decoders to > ProtocolCodecFactory > > which is extended from mina's DemuxingProtocolCodecFactory? > > Or we can have only one decoder and encoder registered as demonstrated > in > > SumUp example? > > How can

Re: How can I configure multiple decoders in MINA?

2007-04-21 Thread mat
ly one decoder and encoder registered as demonstrated in > SumUp example? > How can I configure multiple decoders in MINA? Could you explain the protocol you want to implement more in detail? Do you just want to merge two codecs into one, or to implement multi-layered protocol? Trustin -- wha

Re: How can I configure multiple decoders in MINA?

2007-04-16 Thread Trustin Lee
? How can I configure multiple decoders in MINA? Could you explain the protocol you want to implement more in detail? Do you just want to merge two codecs into one, or to implement multi-layered protocol? Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ --

How can I configure multiple decoders in MINA?

2007-04-11 Thread Yogs
Hi, Can I register more than one Encoders and Decoders to ProtocolCodecFactory which is extended from mina’s DemuxingProtocolCodecFactory? Or we can have only one decoder and encoder registered as demonstrated in SumUp example? How can I configure multiple decoders in MINA? Thanks in