Метод | Описание | |
---|---|---|
CalculateOptimalReadLength ( uint bufferSize ) : uint |
Calculates the optimal size of the buffer to read data from the channel.
|
|
CalculateOptimalWriteLength ( uint bufferSize, byte handle ) : uint |
Calculates the optimal size of the buffer to write data on the channel. Currently, we do not take the remote window size into account. |
|
ChangeDirectory ( string path ) : void |
Changes the current working directory to the specified path.
|
|
GetCanonicalPath ( string path ) : string |
Resolves a given path into an absolute path on the server.
|
|
RequestClose ( byte handle ) : void |
Performs SSH_FXP_CLOSE request.
|
|
RequestFSetStat ( byte handle, |
Performs SSH_FXP_FSETSTAT request.
|
|
RequestFStat ( byte handle ) : |
Performs SSH_FXP_FSTAT request.
|
|
RequestLStat ( string path ) : |
Performs SSH_FXP_LSTAT request.
|
|
RequestMkDir ( string path ) : void |
Performs SSH_FXP_MKDIR request.
|
|
RequestOpen ( string path, |
Performs SSH_FXP_OPEN request
|
|
RequestOpenDir ( string path, bool nullOnError = false ) : byte[] |
Performs SSH_FXP_OPENDIR request
|
|
RequestPosixRename ( string oldPath, string newPath ) : void |
Performs [email protected] extended request.
|
|
RequestRead ( byte handle, ulong offset, uint length ) : byte[] |
Performs SSH_FXP_READ request.
|
|
RequestReadDir ( byte handle ) : SftpFileAttributes>[].KeyValuePair |
Performs SSH_FXP_READDIR request
|
|
RequestRemove ( string path ) : void |
Performs SSH_FXP_REMOVE request.
|
|
RequestRename ( string oldPath, string newPath ) : void |
Performs SSH_FXP_RENAME request.
|
|
RequestRmDir ( string path ) : void |
Performs SSH_FXP_RMDIR request.
|
|
RequestSetStat ( string path, |
Performs SSH_FXP_SETSTAT request.
|
|
RequestStatVfs ( string path, bool nullOnError = false ) : |
Performs [email protected] extended request.
|
|
RequestSymLink ( string linkpath, string targetpath ) : void |
Performs SSH_FXP_SYMLINK request.
|
|
RequestWrite ( byte handle, ulong serverOffset, byte data, int offset, int length, |
Performs SSH_FXP_WRITE request.
|
|
SftpSession ( ISession session, System.TimeSpan operationTimeout, |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void | ||
OnChannelOpen ( ) : void | ||
OnDataReceived ( byte data ) : void |
Метод | Описание | |
---|---|---|
GetFullRemotePath ( string path ) : string | ||
GetSftpException ( |
||
HandleResponse ( |
||
HardLink ( string oldPath, string newPath ) : void |
Performs [email protected] extended request.
|
|
RequestFStatVfs ( byte handle, bool nullOnError = false ) : |
Performs [email protected] extended request.
|
|
RequestReadLink ( string path, bool nullOnError = false ) : SftpFileAttributes>[].KeyValuePair |
Performs SSH_FXP_READLINK request.
|
|
RequestRealPath ( string path, bool nullOnError = false ) : SftpFileAttributes>[].KeyValuePair |
Performs SSH_FXP_REALPATH request
|
|
RequestStat ( string path, bool nullOnError = false ) : |
Performs SSH_FXP_STAT request.
|
|
SendMessage ( |
||
SendRequest ( |
||
TryLoadSftpMessage ( byte packetData, int offset, int count ) : bool |
public CalculateOptimalReadLength ( uint bufferSize ) : uint | ||
bufferSize | uint | The buffer size configured on the client. |
Результат | uint |
public CalculateOptimalWriteLength ( uint bufferSize, byte handle ) : uint | ||
bufferSize | uint | The buffer size configured on the client. |
handle | byte | The file handle. |
Результат | uint |
public ChangeDirectory ( string path ) : void | ||
path | string | The new working directory. |
Результат | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public GetCanonicalPath ( string path ) : string | ||
path | string | The path to resolve. |
Результат | string |
protected OnDataReceived ( byte data ) : void | ||
data | byte | |
Результат | void |
public RequestClose ( byte handle ) : void | ||
handle | byte | The handle. |
Результат | void |
public RequestFSetStat ( byte handle, |
||
handle | byte | The handle. |
attributes | The attributes. | |
Результат | void |
public RequestFStat ( byte handle ) : |
||
handle | byte | The handle. |
Результат |
public RequestLStat ( string path ) : |
||
path | string | The path. |
Результат |
public RequestMkDir ( string path ) : void | ||
path | string | The path. |
Результат | void |
public RequestOpen ( string path, |
||
path | string | The path. |
flags | The flags. | |
nullOnError | bool | if set to |
Результат | byte[] |
public RequestOpenDir ( string path, bool nullOnError = false ) : byte[] | ||
path | string | The path. |
nullOnError | bool | if set to |
Результат | byte[] |
public RequestPosixRename ( string oldPath, string newPath ) : void | ||
oldPath | string | The old path. |
newPath | string | The new path. |
Результат | void |
public RequestRead ( byte handle, ulong offset, uint length ) : byte[] | ||
handle | byte | The handle. |
offset | ulong | The offset. |
length | uint | The length. |
Результат | byte[] |
public RequestReadDir ( byte handle ) : SftpFileAttributes>[].KeyValuePair |
||
handle | byte | The handle. |
Результат | SftpFileAttributes>[].KeyValuePair |
public RequestRemove ( string path ) : void | ||
path | string | The path. |
Результат | void |
public RequestRename ( string oldPath, string newPath ) : void | ||
oldPath | string | The old path. |
newPath | string | The new path. |
Результат | void |
public RequestRmDir ( string path ) : void | ||
path | string | The path. |
Результат | void |
public RequestSetStat ( string path, |
||
path | string | The path. |
attributes | The attributes. | |
Результат | void |
public RequestStatVfs ( string path, bool nullOnError = false ) : |
||
path | string | The path. |
nullOnError | bool | if set to |
Результат |
public RequestSymLink ( string linkpath, string targetpath ) : void | ||
linkpath | string | The linkpath. |
targetpath | string | The targetpath. |
Результат | void |
public RequestWrite ( byte handle, ulong serverOffset, byte data, int offset, int length, |
||
handle | byte | The handle. |
serverOffset | ulong | The the zero-based offset (in bytes) relative to the beginning of the file that the write must start at. |
data | byte | The buffer holding the data to write. |
offset | int | the zero-based offset in |
length | int | The length (in bytes) of the data to write. |
wait | The wait event handle if needed. | |
writeCompleted | Action |
The callback to invoke when the write has completed. |
Результат | void |
public SftpSession ( ISession session, System.TimeSpan operationTimeout, |
||
session | ISession | |
operationTimeout | System.TimeSpan | |
encoding | ||
Результат | System |