Internet Direct (Indy) Version 9.0.1 Beta
TIdMappedPortTCP.OnBeforeClientConnect
Signals a client connection to a host.

property OnBeforeClientConnect: TBeforeClientConnectEvent;
Description
OnBeforeClientConnect is a TBeforeClientConnectEvent event handler used to respond to event notifications generated when an outbound client is about to connect to a remote host.

AThread is the TIdPeerThread for the client opening the connection.

AClient is the TIdTCPClient created for the local connection the host computer.

Applications must assign a procedure to the event handler to allow response to the event notification.