Internet Direct (Indy) Version 9.0.2 Beta
TIdConnectionIntercept.OnConnect
Specifies the event handler for connection notifications.

property OnConnect: TIdInterceptNotifyEvent;
Description
OnConnect is a TNotifyEvent property that is the event handler for connection notifications received by the TIdConnectionIntercept socket handler.

ABinding is the TIdSocketHandle socket handle for the peer connection, and is stored in Binding for use during read and write operations.

Assign a procedure to OnConnect to perform special processing when a connection notification is received in the Connect method. Applications must assign an OnConnect event handler in order to respond to connection notifications.