Back to FlowSsh Documentation

TransferOp Enumeration

[C/C++]

struct FlowSshC_TransferOp { enum {
  // Codeless errors
  Exception        = 0,
  // SFTP errors - see FlowSshC_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 FlowSshC_ResumeErrCode enumeration
  ResumeLocalFile  = 300,
  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.