Internet Direct (Indy) Version 9.0.2 Beta
TIdTunnelMaster.OnTransformSend
Performs data transformation prior to transmission.

property OnTransformSend: TSendTrnEvent;
Description
OnTransformSend is a TSendTrnEvent that allows the tunnel master server to perform data transformation before transmission to a tunnel slave. OnTransformSend is called in SendMsg to transform the message content into an acceptable format for transmission over the network connection.

OnTransformSend is responsible for updating the TIdHeader in Header to reflect the current values for CRC16, MsgType, and MsgLen.

CustomMsg will contain the modified contents of the message after transformation.

Applications must assign a procedure to the event handler to allow a response to the event notification.