Internet Direct (Indy) Version 9.0.1 Beta
TIdTelnet.OnConnect
Specifies the connection event handler.

property OnConnect: TClientEvent;
Description
OnConnect is a TClientEvent event handler that responds to client connection requests. OnConnect is called from the Connect method, prior to opening the socket connection and assigning the TIdTelnetReadThread used to read data for the TIdTelnet object.

Applications should assign a procedure to the OnConnect event handler to respond to connection requests or perform special processing prior to opening the socket connection.