TAstaServerSocket.OnDecompress
Applies to
TAstaServerSocket
Declaration
property OnDecompress: TAstaServerStringEvent;
Description
This event handler allows you to add code to decompress messages after they have been sent, in an
encrypted form, 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.