filezilla engine connect question
Moderator: Project members
-
- 500 Command not understood
- Posts: 2
- Joined: 2016-12-29 03:57
filezilla engine connect question
I make a demo,and Execute CConnectCommand class to create a connection,but when i Execute CFileTransferCommand class to transfer file, it return FZ_REPLY_BUSY or FZ_REPLY_NOTCONNECTED.I find someone said "Every action will require it's own connection", but i don't konw how to do this.
Re: filezilla engine connect question
FZ_REPLY_BUSY means that the engine is already executing a command, FZ_REPLY_NOTCONNECTED means that the engine is not connected yet the command requires a connected engine.
Looks like you are not waiting for commands to finish executing.
Looks like you are not waiting for commands to finish executing.
-
- 500 Command not understood
- Posts: 2
- Joined: 2016-12-29 03:57
Re: filezilla engine connect question
thank you very much.i usingbotg wrote:FZ_REPLY_BUSY means that the engine is already executing a command, FZ_REPLY_NOTCONNECTED means that the engine is not connected yet the command requires a connected engine.
Looks like you are not waiting for commands to finish executing.
Code: Select all
while(engine.IsBusy());
Re: filezilla engine connect question
Don't do busy waiting, that design anti-pattern does not belong in modern code.
Wait for the notification callback, dispatch the notifications through wx' event system and then react to those notifications.
Wait for the notification callback, dispatch the notifications through wx' event system and then react to those notifications.