Skip to content

Latest commit

 

History

History
217 lines (135 loc) · 4.7 KB

File metadata and controls

217 lines (135 loc) · 4.7 KB

< Back


SSHFileTransfer

Namespace: BurnSoft.SecureShell

Class that handles the Secure FIle Transfer to the selected host

public class SSHFileTransfer

Inheritance ObjectSSHFileTransfer

Constructors

SSHFileTransfer()

public SSHFileTransfer()

Methods

SendDebug(String)

Sends the debug.

protected void SendDebug(string value)

Parameters

value String
The value.

OnUploadStatus(Int32)

Called when [upload status].

protected void OnUploadStatus(int e)

Parameters

e Int32
The e.

OnDownloadStatus(Int32)

Called when [download status].

protected void OnDownloadStatus(int e)

Parameters

e Int32
The e.

OnCurrentFile(String)

Called when [current file].

protected void OnCurrentFile(string e)

Parameters

e String
The e.

DownloadFile(String, String, String, String, String, String&)

Downloads the file.

public bool DownloadFile(string host, string uid, string pwd, string remoteFileAndPath, string localFileAndPath, String& errOut)

Parameters

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.

Returns

Boolean
true if XXXX, false otherwise.

DownloadDirectory(String, String, String, String, String, String&)

Downloads the directory.

public bool DownloadDirectory(string host, string uid, string pwd, string remotePath, string localPath, String& errOut)

Parameters

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.

Returns

Boolean
true if XXXX, false otherwise.

UploadFile(String, String, String, String, String, String, String&)

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)

Parameters

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.

Returns

Boolean
true if XXXX, false otherwise.

Events

UploadStatus

Occurs when [upload status].

public event EventHandler<int> UploadStatus;

DownloadStatus

Occurs when [download status].

public event EventHandler<int> DownloadStatus;

CurrentFile

Occurs when [current file].

public event EventHandler<string> CurrentFile;

DebugInformation

Occurs when [debug information].

public event EventHandler<string> DebugInformation;

< Back