wodSFTP API library - Disconnect Method
      
 

Description

Disconnects from the remote server.


Return type

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


Syntax

long Sftp_Disconnect(void *Sftp);

The Disconnect function syntax has these parts:

Part Description
void *Sftp Handle 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.