TransferOp Enumeration
[C/C++]
enum FlowSshC_TransferOp
{
// Codeless errors
FlowSshC_TransferOp_Exception = 0,
// SFTP errors - see FlowSshC_SftpErrCode enumeration
FlowSshC_TransferOp_MakeRemoteDir = 100,
FlowSshC_TransferOp_OpenRemoteFile = 101,
FlowSshC_TransferOp_ReadRemoteFile = 102,
FlowSshC_TransferOp_WriteRemoteFile = 103,
FlowSshC_TransferOp_ChannelNotOpen = 150,
// WinAPI errors - see MSDN
FlowSshC_TransferOp_MakeLocalDir = 200,
FlowSshC_TransferOp_OpenLocalFile = 201,
FlowSshC_TransferOp_ReadLocalFile = 202,
FlowSshC_TransferOp_WriteLocalFile = 203,
// Resume errors - see FlowSshC_ResumeErrCode enumeration
FlowSshC_TransferOp_ResumeLocalFile = 300,
FlowSshC_TransferOp_ResumeRemoteFile = 301
};
[C#]
public enum TransferOp
{
// Codeless errors
Exception = 0,
// SFTP errors - see SftpErrCode enumeration
MakeRemoteDir = 100,
OpenRemoteFile = 101,
ReadRemoteFile = 102,
WriteRemoteFile = 103,
ChannelNotOpen = 150,
// WinAPI errors - see MSDN
MakeLocalDir = 200,
OpenLocalFile = 201,
ReadLocalFile = 202,
WriteLocalFile = 203,
// Resume errors - see ResumeErrCode enumeration
ResumeLocalFile = 300,
ResumeRemoteFile = 301
}
Members
- Exception: The error is a codeless error. [TransferErr]ErrMsg might contain a description with more details.
- MakeRemoteDir: Failed to create remote directory. *
- OpenRemoteFile: Failed to open remote file. *
- ReadRemoteFile: Failed to read remote file. *
- WriteRemoteFile: Failed to write remote file. *
- ChannelNotOpen: Channel is closed, closing, or opening. *
- MakeLocalDir: Failed to create local directory. **
- OpenLocalFile: Failed to open local file. **
- ReadLocalFile:Failed to read local file. **
- WriteLocalFile: Failed to write local file. **
- ResumeLocalFile: Failed to resume file download. ***
- ResumeRemoteFile: Failed to resume file upload. ***
Remarks
An enumeration used with the TransferErr structure/class to specify the failure. It implicitly defines the meaning of the [TransferErr]ErrCode member.
* [TransferErr]ErrCode contains a SftpErrCode enumeration.
** [TransferErr]ErrCode contains a Win32 error code.
*** [TransferErr]ErrCode contains a ResumeErrCode enumeration.