C# 클래스 FubarDev.FtpServer.FtpConnection

This class represents a FTP connection
상속: IDisposable
파일 보기 프로젝트 열기: FubarDevelopment/FtpServer 1 사용 예제들

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