Le 7/27/12 8:52 AM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) a écrit :
Hi,
I think, I have sufficient code as of now to handle chunks of message or
handling the NEED_DATA event in my server implementation. But, how do I
test it ? The 'chunking' is certainly not in my control. I came across
PacketETH (http://sourceforge.net/projects/packeth/) for packet generation.
Has anyone tried this ? Or, could there be some other tool to test this
behavior ?
You don't need to test the fragmentation handling through a real network. Just check that you decoder is handling such scenario as a standolne component : ie, inject fragmented IoBuffer into it, and chack that it behaves correctly.

Keep in mind that the decoder is instanciated in a filter, so you should be able to instanciate the codec filter without the rest of the stack. This is what I did for many protocols that I worked on.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to