C# Класс FubarDev.FtpServer.FtpConnection

This class represents a FTP connection
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddExtensions void
CreateEncryptedStream Task
CreateResponseSocket Task
FindCommandHandler Tuple
OnClosed void
ProcessMessage Task
ProcessMessages Task
Write void

Открытые методы

Метод Описание
Close ( ) : void

Closes the connection

Dispose ( ) : void
FtpConnection ( [ server, [ socket, [ encoding ) : System

Initializes a new instance of the FtpConnection class.

Start ( ) : void

Starts processing of messages for this connection

WriteAsync ( [ response, CancellationToken cancellationToken ) : Task

Writes a FTP response to a client

Приватные методы

Метод Описание
AddExtensions ( IEnumerable extensions ) : void
CreateEncryptedStream ( [ unencryptedStream ) : Task
CreateResponseSocket ( ) : Task
FindCommandHandler ( FtpCommand command ) : Tuple
OnClosed ( ) : void
ProcessMessage ( FtpCommand command ) : Task
ProcessMessages ( ) : Task
Write ( [ response ) : void

Writes a FTP response to a client

Описание методов

Close() публичный Метод

Closes the connection
public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FtpConnection() публичный Метод

Initializes a new instance of the FtpConnection class.
public FtpConnection ( [ server, [ socket, [ encoding ) : System
server [ The server this connection belongs to
socket [ The socket to use to communicate with the client
encoding [ The encoding to use for the LIST/NLST commands
Результат System

Start() публичный Метод

Starts processing of messages for this connection
public Start ( ) : void
Результат void

WriteAsync() публичный Метод

Writes a FTP response to a client
public WriteAsync ( [ response, CancellationToken cancellationToken ) : Task
response [ The response to write to the client
cancellationToken System.Threading.CancellationToken The cancellation token
Результат Task