Internet Direct (Indy) Version 9.0.1 Beta
TIdTunnelSlave.OnBeforeTunnelConnect
Specifies the event handler for creating the connection to TIdTunnelMaster.

property OnBeforeTunnelConnect: TSendTrnEventC;
Description
OnBeforeTunnelConnect is a TSendTrnEventC event handler that allows the TIdTunnelSlave to respond prior to creating the TCP tunnel connection for TIdTunnelMaster.

OnBeforeTunnelConnect is signalled when SlaveThread is initialized for the server. Use OnBeforeTunnelConnect to override the UserID or message type in Header used to authenticate the server connection to TIdTunnelMaster, or to update user interface elements upon receipt of the notification.

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