TAstaClientSocket.OnCompress


 

Applies to
TAstaClientSocket

 

Declaration
property OnCompress: TAstaClientDataStringEvent;

 

Description
This event handler allows you to add code to compress messages before they are sent across the network. It should be noted that compression/decompression routines will have performance considerations. Compressing large messages before they are sent over slow network connections is sensible. Compressing small messages before transmission over fast LANs may actually impede performance -- it might take longer to compress/decompress the data then it takes for the data to travel across the network.

NOTE: If you add compression routines, you must add decompression routines. You must place your code in the appropriate even handlers (OnCompress and OnDecompress) of the AstaClientSocket and the AstaServerSocket.

 



ASTA Overview TAstaClientSocket.OnCodedMessage TAstaClientSocket.OnConnectStatusChange