On 7/16/10 2:45 PM, MiKiOnE wrote:
Hi all.
I'm have binary protocol with fixed sizes of headers (2 types)
the protocol have 2 types of packages enrypted by two diferent algorythms
seciefed by first byte of header
The first bbyte also define the size of Lenght secction in header
[Head|size|package spec][body]
My question is what base use to defragment the protocol and decrypt it after
defragmentation?
You can handle it yourself, as you know the size of your data. What you
have to do is to store the fragments in the session, and when your
message has been fully received, then decode it.
This is what we do for decoding Ldap messages.
Just one thing to consider : the length itself can be fragmented, so be
ready for that.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com