
Public Member Functions | |
| Scp (string host, string user, string password) | |
| Scp (string host, string user) | |
| override void | Cancel () |
| override void | Mkdir (string dir) |
| Creates a directory on the remot server. | |
| override void | Put (string fromFilePath, string toFilePath) |
| override void | Get (string fromFilePath, string toFilePath) |
| void | To (string localPath, string remotePath) |
| Copies a file from local machine to a remote SSH machine. | |
| void | To (string localPath, string remotePath, bool _recursive) |
| Copies a file from local machine to a remote SSH machine. | |
| void | From (string remoteFile, string localPath) |
| Copies a file from a remote SSH machine to the local machine using SCP. | |
| void | From (string remoteFile, string localPath, bool _recursive) |
| Copies a file from a remote SSH machine to the local machine using SCP. | |
Protected Member Functions | |
| override void | ConnectChannel () |
| This function is empty, so no channel is connected on session connect. | |
| void | SCP_CheckConnectivity () |
| Checks is a channel is already connected by this instance. | |
| void | SCP_ConnectTo (out Channel channel, out Stream server, string rfile, bool recursive) |
| Connect a channel to the remote server using the 'SCP TO' command ('scp -t'). | |
| void | SCP_ConnectFrom (out Channel channel, out Stream server, string rfile, bool recursive) |
| Connect a channel to the remote server using the 'SCP From' command ('scp -f'). | |
| void | SCP_SendFile (Stream server, string src, string dst) |
| Transfer a file to the remote server. | |
| void | SCP_ReceiveFile (Stream server, string rfile, string lfile, int size) |
| Transfer a file from the remote server. | |
| void | SCP_EnterIntoDir (Stream server, string dir) |
| Instructs the remote server to enter into a directory. | |
| void | SCP_EnterIntoParent (Stream server) |
| Instructs the remote server to go up one level. | |
Properties | |
| override string | ChannelType [get] |
| bool | Recursive [get, set] |
| Gets or sets a value indicating the default recursive transfer behaviour. | |
| bool | Verbos [get, set] |
| Gets or sets a value indicating whether trace information should be printed. | |
Definition at line 43 of file Scp.cs.
| Tamir.SharpSsh.Scp.Scp | ( | string | host, | |
| string | user, | |||
| string | password | |||
| ) |
| override void Tamir.SharpSsh.Scp.Cancel | ( | ) | [virtual] |
| override void Tamir.SharpSsh.Scp.ConnectChannel | ( | ) | [protected, virtual] |
This function is empty, so no channel is connected on session connect.
Reimplemented from Tamir.SharpSsh.SshBase.
| void Tamir.SharpSsh.Scp.From | ( | string | remoteFile, | |
| string | localPath, | |||
| bool | _recursive | |||
| ) |
| void Tamir.SharpSsh.Scp.From | ( | string | remoteFile, | |
| string | localPath | |||
| ) |
| override void Tamir.SharpSsh.Scp.Get | ( | string | fromFilePath, | |
| string | toFilePath | |||
| ) | [virtual] |
| override void Tamir.SharpSsh.Scp.Mkdir | ( | string | dir | ) | [virtual] |
Creates a directory on the remot server.
| dir | The new directory |
Implements Tamir.SharpSsh.SshTransferProtocolBase.
| override void Tamir.SharpSsh.Scp.Put | ( | string | fromFilePath, | |
| string | toFilePath | |||
| ) | [virtual] |
| void Tamir.SharpSsh.Scp.SCP_CheckConnectivity | ( | ) | [protected] |
| void Tamir.SharpSsh.Scp.SCP_ConnectFrom | ( | out Channel | channel, | |
| out Stream | server, | |||
| string | rfile, | |||
| bool | recursive | |||
| ) | [protected] |
Connect a channel to the remote server using the 'SCP From' command ('scp -f').
| channel | Will contain the new connected channel | |
| server | Will contaun the new connected server I/O stream | |
| rfile | The remote path on the server | |
| recursive | Idicate a recursive scp transfer |
| void Tamir.SharpSsh.Scp.SCP_ConnectTo | ( | out Channel | channel, | |
| out Stream | server, | |||
| string | rfile, | |||
| bool | recursive | |||
| ) | [protected] |
Connect a channel to the remote server using the 'SCP TO' command ('scp -t').
| channel | Will contain the new connected channel | |
| server | Will contaun the new connected server I/O stream | |
| rfile | The remote path on the server | |
| recursive | Idicate a recursive scp transfer |
| void Tamir.SharpSsh.Scp.SCP_EnterIntoDir | ( | Stream | server, | |
| string | dir | |||
| ) | [protected] |
| void Tamir.SharpSsh.Scp.SCP_EnterIntoParent | ( | Stream | server | ) | [protected] |
| void Tamir.SharpSsh.Scp.SCP_ReceiveFile | ( | Stream | server, | |
| string | rfile, | |||
| string | lfile, | |||
| int | size | |||
| ) | [protected] |
| void Tamir.SharpSsh.Scp.SCP_SendFile | ( | Stream | server, | |
| string | src, | |||
| string | dst | |||
| ) | [protected] |
| void Tamir.SharpSsh.Scp.To | ( | string | localPath, | |
| string | remotePath, | |||
| bool | _recursive | |||
| ) |
| void Tamir.SharpSsh.Scp.To | ( | string | localPath, | |
| string | remotePath | |||
| ) |
override string Tamir.SharpSsh.Scp.ChannelType [get, protected] |
bool Tamir.SharpSsh.Scp.Recursive [get, set] |
bool Tamir.SharpSsh.Scp.Verbos [get, set] |
1.5.9