Internet Direct (Indy)
Home
PreviousUpNext
TIdContext.OnBeforeRun Event

Event handler signalled before execution of the client connection context.

Pascal
property OnBeforeRun: TIdContextBeforeRun;

OnBeforeRun is a TIdContextBeforeRun event handler property used following creation of a session context by a listener thread for the TCP server. 

The session context that represents the executable for a client connection is passed as an argument to the event handler procedure. 

OnBeforeRun is normally assigned a procedure runs the OnConnect event handler in TIdTCPServer. OnBeforeRun is signalled once before execution of the OnRun loop for the session context.

TIdContextBeforeRun 

TIdTCPServer.OnConnect

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.