type

 TScBeforeClientConnectEvent = procedure(Sender: TObject; const SockAddr: PSockAddr; var Cancel: boolean) of object;

 

property BeforeClientConnect: TScBeforeClientConnectEvent;

 

Description

Occurs before establishing a new SSH connection, when there is a socket connection to the port listened by the SSH server.

To cancel a connection, set the Cancel parameter to True. This can be done for both a particular IP by checking the SockAddr parameter and for any other reason.

 

Parameters:

Sender - the object whose event handler is called;
SockAddr - holds the information in the WinSocket format about the socket that is trying to connect to the SSH server;
Cancel - determines whether an SSH connection to the specified socket will be established. Set Cancel to True if you want to cancel establishing a connection.

 

See Also

AfterClientConnect

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support