Hello,
I am testing SecureBridge with the SFTPClient sample.
It works.
But if I activate the SFTPClient.NoBlocking property: = true
The "Start SFTP" does not work anymore.
Can you help me ?
Thank you
SFTPClient NoBlocking:=true
Re: SFTPClient NoBlocking:=true
I'm studying the component SFTPClient , I really do not see how to execute for example the command dir, without blocking?
Is it really done for that?
Is it really done for that?
Re: SFTPClient NoBlocking:=true
Our SFTPClient demo is designed to run when the TscSFTPClient.NoBlocking property is set to False. Since the example code uses code
Code: Select all
while not ScSFTPClient.EOF (Handle) do
Re: SFTPClient NoBlocking:=true
Please give a more detailed description of the question and specify what you mean by the phrase "the command dir": call TscSFTPClient.ReadDirectory method or something else?
Re: SFTPClient NoBlocking:=true
I would like to run the ScSFTPClient component in mode NoBlocking: = true.
At first, succeed in making OpenDirectory function.
This work's good with NoBlocking: = false.
But it doesn't work with NoBlocking = true.
At first, succeed in making OpenDirectory function.
This work's good with NoBlocking: = false.
Code: Select all
AnsiString RootDir;
TScSFTPFileHandle Handle;
Handle = ScSFTPClient->OpenDirectory("/test");
while (!ScSFTPClient->EOF(Handle))
{
ScSFTPClient->ReadDirectory(Handle);
}
ScSFTPClient->CloseHandle(Handle);
Re: SFTPClient NoBlocking:=true
As we wrote to you earlier, when the NoBlocking property is set to True, the code while (!ScSFTPClient->EOF(Handle) does not have any sense. Our demo example is designed to be run when the NoBlocking property is set to False. If NoBlocking is set to True, you should use the required event handlers to ensure correctness of work. For example, after calling OpenDirectory in the NonBlocking mode, you need to process the TScSFTPClient.OnOpenFile even: : https://devart.com/sbridge/docs/tscsftp ... nDirectory
Please refer to the official SecureBridge documentation for more details.
Please refer to the official SecureBridge documentation for more details.