TAstaServerSocket.OnCompress


 

Applies to
TAstaServerSocket

 

Declaration
property OnCompress: TAstaServerStringEvent;

 

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 event handlers (OnCompress and OnDecompress) of the AstaClientSocket and the AstaServerSocket.

 

ASTA Compression



ASTA Overview TAstaServerSocket.OnCodedStream TAstaServerSocket.OnDecompress