Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiSSHServerLogin.CancelLogin

function CancelLogin: Boolean;
Cancels a login under way. The thread that logs the client in ends the connection, with SSH_MSG_DISCONNECT reason 11 as Close does, the next time it reads or sends - at once while it waits for the client, otherwise when the step under way is done (checking a password or a key, or an event handler); it sends the client nothing else after the cancellation. Any thread may call it, without the transport's lock. True when a login was under way, or had been cancelled already: the connection is then that thread's to end, and the caller must neither send on the transport nor close it. False outside the login.