Topic Path: Symbol Reference > Classes > TIdServerCompressionIntercept Class > TIdServerCompressionIntercept Properties > CompressionLevel Property
ContentsIndexHome
PreviousUpNext
TIdServerCompressionIntercept.CompressionLevel Property

Represents the compression level applied the data stream for the intercept.

property CompressionLevel: TCompressionLevel;

CompressionLevel is a TCompressionLevel property that represents the compression level to be applied when transforming data using Send or Receive. Set CompressionLevel to a value between 1 and 9 to enable compressing of the data stream for intercept. When CompressionLevel is 0 (zero), compression is disabled and the intercept is dormant. 

Both the sender and receiver must have compression enabled in order to properly decompress the data stream for the intercept. They do not have to use the same CompressionLevel as long as they are both set to a value between 1 and 9. 

Changing the value in CompressionLevel ensures that the internal compression and decompression records are reset and cleared. The new value for CompressionLevel will also be forced into the range allowed by the TCompressionLevel enumeration.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.