Hi all again, Thanks a lot for idea and I'm successfully rewrote my code to use Mina3.
But I faced with flow which implementation wasn't easy. And it's related to internal realization of cummulative buffer (it's not exists in the mina3, thus I'm tried to write own). I try to do it and it wasn't work... =( After investigation code of mina I found that the same buffer passed to the decoder in case if previous call of decoder successfully return data object (not null!) Thus for commulative buffer I need to have logic which is check if passed buffer was already added to commulative buffer or not. As for me from one point it's logical, from another point we need have heavy logic to prevent duplication during union two buffers. I agree that issue can be in my code/logic, but I'm only want to show some of end user flows which can be appeared. =) My implementation of "comulative buffer" you can find here: https://github.com/vkravets/Fido4Java/blob/5b1e0f0b91c928e01047a2604925f8964e7cbff6/binkp-mina3/src/main/java/org/fidonet/binkp/codec/BinkDataDecoder.java It will be great if someone comments or show me another way how it can be implementing. Or improve such user case in MINA3 before release. Thanks, Vladimir 2014-04-13 18:56 GMT+03:00 Vladimir Kravets <[email protected]>: > Hi guys, > > I would like to move from Mina2 to Mina3... > I noticed that old api in most cases is not compatible with Mina3. > > You can see the protocol implementation in which I use Mina2 here: > https://github.com/vkravets/Fido4Java/tree/master/binkp > > Could you specify guide or examples which helps me to move to Mina3? > > Also I have one additional question which is related to Mina2 and Mina3: > I have protocol encrypt/decrypt but this is is optional and it should be > performed after connection(I received message in which describing should I > use encryption or not). > Can I performing such behavior using chain Filters. If yes how I can > control state of encryption? > > Thanks, > Vladimir >
