Should Sftp_Disconenct always be called? (General questions)

by Mike Hufnagel @, (5386 days ago)

Should Sftp_Disconnect be called before Sftp_Destroy or would it be redundant?

I don't see anything in the doc about this - let me know if I missed something.

Thanks,

Mike

locked

Re: Should Sftp_Disconenct always be called?

by wodDamir @, (5386 days ago) @ Mike Hufnagel

Hi Mike,

The Destroy will destroy the instance of the component, and free the memory it took. It should also disconnect the socket automatically.

Disconnect on the other hand will just close the socket connection, allowing you to re-use the same instance again.

Hope this helps.

Regards,
Damba

locked

Re: Should Sftp_Disconenct always be called?

by Mike Hufnagel @, (5386 days ago) @ wodDamir

Thanks Damba

locked