Topic Path: Symbol Reference > Types > TIdContextBeforeRun Type
TIdContextBeforeRun Type

Type used for the OnBeforeRun event handler in a TCP server.

TIdContextBeforeRun = procedure (AContext: TIdContext) of object;
Session context for the event handler procedure. 

TIdContextBeforeRun is an object procedure that implements the type used for the OnBeforeRun event handler in TIdContext

AContext is the session context passed for the event handler procedure that represents the executable for a client connection to a TCP server. 

The TIdContextBeforeRun object procedure is used following creation of a session context by a listener thread for the TCP server. TIdContextBeforeRun is signalled once before execution of the OnExecute loop for the session context.

TIdContext.OnBeforeRun TIdTCPServer.OnConnect

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