I use the Devart SecureBridge components Pack to connect to firewall (cisco, srx...) using SSH. I use the TScSSHShell.WriteString to execute commands and then monitor the result on the OnAsyncReceive event and I need to know when the event has finished receiving data from the remote device?.
Delphi 10.4.2 IDE