Back to product page

ServerErrorCode function


Holds the error code returned by the server.

Type

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

Syntax

  • C
long Sftp_GetServerErrorCode(void *Sftp, short *pVal);
The ServerErrorCode(void *Sftp,short *pVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
short *pValPointer 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

Platforms

Windows