Namespace: BurnSoft.SecureShell
Class that handles the Secure FIle Transfer to the selected host
public class SSHFileTransferInheritance Object → SSHFileTransfer
public SSHFileTransfer()Sends the debug.
protected void SendDebug(string value)value String
The value.
Called when [upload status].
protected void OnUploadStatus(int e)e Int32
The e.
Called when [download status].
protected void OnDownloadStatus(int e)e Int32
The e.
Called when [current file].
protected void OnCurrentFile(string e)e String
The e.
Downloads the file.
public bool DownloadFile(string host, string uid, string pwd, string remoteFileAndPath, string localFileAndPath, String& errOut)host String
The host.
uid String
The uid.
pwd String
The password.
remoteFileAndPath String
The remote file and path.
localFileAndPath String
The local file and path.
errOut String&
The error out.
Boolean
true if XXXX, false otherwise.
Downloads the directory.
public bool DownloadDirectory(string host, string uid, string pwd, string remotePath, string localPath, String& errOut)host String
The host.
uid String
The uid.
pwd String
The password.
remotePath String
The remote path.
localPath String
The local path.
errOut String&
The error out.
Boolean
true if XXXX, false otherwise.
Uploads the file from the local machine to the remote machine..
public bool UploadFile(string host, string uid, string pwd, string remotePath, string localPath, string fileName, String& errOut)host String
The host.
uid String
The uid.
pwd String
The password.
remotePath String
The remote path.
localPath String
The local path.
fileName String
Name of the file.
errOut String&
The error out.
Boolean
true if XXXX, false otherwise.
Occurs when [upload status].
public event EventHandler<int> UploadStatus;Occurs when [download status].
public event EventHandler<int> DownloadStatus;Occurs when [current file].
public event EventHandler<string> CurrentFile;Occurs when [debug information].
public event EventHandler<string> DebugInformation;