Метод | Описание | |
---|---|---|
Download ( string directoryName, |
Downloads the specified directory from the remote host to local directory.
|
|
Download ( string filename, |
Downloads the specified file from the remote host to local file.
|
|
Download ( string filename, Stream destination ) : void |
Downloads the specified file from the remote host to the stream. Method calls made by this method to destination, may under certain conditions result in exceptions thrown by the stream. |
|
ScpClient ( |
Initializes a new instance of the SftpClient class.
|
|
ScpClient ( string host, string username ) : System |
Initializes a new instance of the SftpClient class.
|
|
ScpClient ( string host, string username, string password ) : System |
Initializes a new instance of the SftpClient class.
|
|
Upload ( |
Uploads the specified directory to the remote host.
|
|
Upload ( |
Uploads the specified file to the remote host.
|
|
Upload ( Stream source, string path ) : void |
Uploads the specified stream to the remote host.
|
Метод | Описание | |
---|---|---|
CheckReturnCode ( Stream input ) : void |
Checks the return code.
|
|
InternalDownload ( IChannel channel, Stream input, Stream output, string filename, long length ) : void | ||
InternalDownload ( IChannelSession channel, Stream input, |
||
InternalSetTimestamp ( IChannelSession channel, Stream input, System.DateTime lastWriteTime, System.DateTime lastAccessime ) : void | ||
InternalUpload ( IChannelSession channel, Stream input, |
||
InternalUpload ( IChannelSession channel, Stream input, |
||
InternalUpload ( IChannelSession channel, Stream input, Stream source, string filename ) : void | ||
RaiseDownloadingEvent ( string filename, long size, long downloaded ) : void | ||
RaiseUploadingEvent ( string filename, long size, long uploaded ) : void | ||
ReadByte ( Stream stream ) : int | ||
ReadString ( Stream stream ) : string | ||
ScpClient ( |
Initializes a new instance of the ScpClient class. If ownsConnectionInfo is |
|
ScpClient ( |
Initializes a new instance of the ScpClient class. If ownsConnectionInfo is |
|
ScpClient ( string host, int port, string username ) : System | ||
ScpClient ( string host, int port, string username, string password ) : System | ||
SendConfirmation ( IChannel channel ) : void | ||
SendConfirmation ( IChannel channel, byte errorCode, string message ) : void | ||
SendData ( IChannel channel, byte buffer ) : void | ||
SendData ( IChannel channel, byte buffer, int length ) : void | ||
SendData ( IChannel channel, string command ) : void |
public Download ( string directoryName, |
||
directoryName | string | Remote host directory name. |
directoryInfo | Local directory information. | |
Результат | void |
public Download ( string filename, |
||
filename | string | Remote host file name. |
fileInfo | Local file information. | |
Результат | void |
public Download ( string filename, Stream destination ) : void | ||
filename | string | Remote host file name. |
destination | Stream | The stream where to download remote file. |
Результат | void |
public ScpClient ( |
||
connectionInfo | The connection info. | |
Результат | System |
public ScpClient ( string host, string username ) : System | ||
host | string | Connection host. |
username | string | Authentication username. |
Результат | System |
public ScpClient ( string host, string username, string password ) : System | ||
host | string | Connection host. |
username | string | Authentication username. |
password | string | Authentication password. |
Результат | System |
public Upload ( |
||
directoryInfo | The directory info. | |
path | string | The path. |
Результат | void |
public Upload ( |
||
fileInfo | The file system info. | |
path | string | The path. |
Результат | void |
public Upload ( Stream source, string path ) : void | ||
source | Stream | Stream to upload. |
path | string | Remote host file name. |
Результат | void |