View Single Post
  #3 (permalink)  
Old March 11th, 2009
CathalG CathalG is offline
Novicius
 
Join Date: January 8th, 2009
Posts: 3
CathalG is flying high
Default

Thanks for your reply.

Yes; if I wait until the TCP connection is terminated, then pass the incomplete inflated stream to a handler function: it does produce valid messages.

My next question is: how can I continuously process these messages without having to wait until the end of the connection?

i.e. Currently, if I pass the stream to a handler function after x packets (for example), the next time I call inflate() with the stream beginning at packet(x+1), it returns Z_STREAM_ERROR.

I assume this return value will result in an invalid inflated stream.

I hope I have explained this clearly enough.

Thanks for your help.
Reply With Quote