Responds to opening the connection for the intercept.
Parameters |
Description |
AConnection |
Socket connection for the intercept. |
Connect is procedure used to respond to opening the connection for the TIdConnectionIntercept instance. AConnection is the socket descriptor that generates the connection notification, and is stored in Connection.
Connect triggers the TNotifyEvent event when the OnConnect event handler has been assigned to respond to the connection event.
If a valid intercept exists in Intercept, its connection method is called.
Connect is a virtual method in TIdConnectionIntercept, and can be re-implemented in descendant classes to provide additional connection handling appropriate to the transport or protocol.
Use Disconnect to respond to closing the connection, and to notify the Intercept of the action.
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. |