Internet Direct (Indy) Version 9.0.1 Beta
TIdTunnelMaster.OnConnect
Specifies the event handler for new client connections.

property OnConnect: TIdServerThreadEvent;
Description
OnConnect is a TIdServerThreadEvent event handler that allows the tunnel master server to respond to connection requests from the listening thread.

OnConnect is called from the DoConnect method after a TSlaveData container has been initialized for the client connection in Thread.

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