The StateChange callback is invoked each time wodSFTP's
internal state changes. Initially, it is set to
Disconnected. Once you initiate a new
connection, it will change to Connecting, etc..
Using this callback you can see if there is something
happening with wodSFTP or if it is idle and waiting for your
commands.
You can determine the current state using State function.
NOTE: this callback is called only if
you have created instance of SftpEventsStruct structure, and set up its StateChange member to
function implementing it.