That would be mostmy my usage: having the tcp stream completly
compressed and mostly replacing the tcpSocket by inflate/deflate
streams.

The actual read-loop in my program looks like this:

     [[inputStream atEnd not] whileTrue: [self handleData: inputStream 
nextHunk]]

I would then after the compression-handshake replace inputStream (which is a 
tcp socket
before the handshake) with an inflate stream.

Yes, but don't expect nextHunk to retrieve a whole packet. It could return only part of it. I would just do

  [inputStream atEnd not] whileTrue: [ self handleData: inputStream ]

You can assume that the RawInflateStream will not request more data from the socket when it sees a flush. So, if #handleData: does not try to read past the end of the packet, it should just work.

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to