Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPServer.OnConnect
Event handler for peer thread connection attempts.

property OnConnect: TIdServerThreadEvent;
Description
OnConnect is an event handler for TIdServerThreadEvents. OnConnect occurs when a TIdPeerThread attempts to connect to a TIdTCPServer.

OnConnect receives AThread as a parameter, representing the TIdPeerThread thread that is requesting the connection.

Assign a TIdServerThreadEvent event handler procedure to OnConnect.