wodSFTP API library - ServerErrorCode Property
      
 

Description

Holds the error code returned by the server.


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

Syntax

long Sftp_GetServerErrorCode(void *Sftp, short *pVal);

The ServerErrorCode Property syntax has these parts:

Part Description
void *Sftp Handle of the created Sftp instance.
short *pVal Pointer to la ong value that represents an error returned by the server.

Remarks

The ServerErrorCode property holds the last error that was returned by the server, and is only set by wodSFTP when it throws error 30018. If you try to read this information before error 30018 is thrown, it is likely to be invalid. We suggest that you read it from within the Done callback or, if you are working in Blocking mode, immediately after you get control back from wodSFTP.

Possible values are:

0 OK
1 End of file
2 No such file or folder
3 Permission denied
4 General failure
5 Bad message
6 No connection
7 Connection lost
8 Operation unsupported