Topic Path: Symbol Reference > Classes > TIdCustomTCPServer Class > TIdCustomTCPServer Events > OnConnect Event
TIdCustomTCPServer.OnConnect Event

Event handler signalled for establishing new client connections.

property OnConnect: TIdServerThreadEvent;

OnConnect is a TIdServerThreadEvent property that represents the event handler signalled when a new client connection is connected to the server. 

OnConnect receives the TIdContext that represents the executable task for the client connection. OnConnect allows processing that occurs after the client connection has been accepted by a listener thread, and before execution of the TIdContext instance. 

Applications must assign a TIdServerThreadEvent event handler procedure to OnConnect to allow responding to the event notification. OnConnect is triggered by the protected procedure in the server assigned to the TIdContext.OnBeforeRun event handler.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.