Back to product page

Disconnect function


Disconnects from the remote server.

Type

A Long value. If successful, 0 is returned, otherwise error as specified here

Syntax

  • C
long Sftp_Disconnect(void *Sftp);
The Disconnect(void *Sftp) syntax has these parts:
void *SftpHandle of the created Sftp instance.

Remarks

The Disconnect method will close the socket between wodSFTP and the remote server, thus breaking the connection and any ongoing transfers. The Sftp handle of the created instance will not be destroyed. You can initiate a new connection using the same handle.

Platforms

Windows