C# 클래스 FubarDev.FtpServer.FtpServer

The portable FTP server
상속: IDisposable
파일 보기 프로젝트 열기: FubarDevelopment/FtpServer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConnectionOnClosed void
ConnectionReceived void
ExecuteServerListener Task
GetBackgroundTaskStates BackgroundTransferStatus>>.IReadOnlyCollection
OnConfigureConnection void

공개 메소드들

메소드 설명
Dispose ( ) : void
EnqueueBackgroundTransfer ( [ backgroundTransfer, [ connection ) : void

Enqueue a new IBackgroundTransfer for the given connection

FtpServer ( [ fileSystemClassFactory, [ membershipProvider, [ commsInterface ) : System

Initializes a new instance of the FtpServer class.

FtpServer ( [ fileSystemClassFactory, [ membershipProvider, [ commsInterface, int port, [ handlerFactory ) : System

Initializes a new instance of the FtpServer class.

Start ( ) : void

Starts the FTP server in the background

Stop ( ) : void

Stops the FTP server

The FTP server cannot be started again after it was stopped.

비공개 메소드들

메소드 설명
ConnectionOnClosed ( object sender, EventArgs eventArgs ) : void
ConnectionReceived ( object sender, Sockets.Plugin.Abstractions.TcpSocketListenerConnectEventArgs args ) : void
ExecuteServerListener ( AutoResetEvent e ) : Task
GetBackgroundTaskStates ( ) : BackgroundTransferStatus>>.IReadOnlyCollection
OnConfigureConnection ( FtpConnection connection ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnqueueBackgroundTransfer() 공개 메소드

Enqueue a new IBackgroundTransfer for the given connection
public EnqueueBackgroundTransfer ( [ backgroundTransfer, [ connection ) : void
backgroundTransfer [ The background transfer to enqueue
connection [ The connection to enqueue the background transfer for
리턴 void

FtpServer() 공개 메소드

Initializes a new instance of the FtpServer class.
public FtpServer ( [ fileSystemClassFactory, [ membershipProvider, [ commsInterface ) : System
fileSystemClassFactory [ The to use to create the for the logged in user.
membershipProvider [ The used to validate a login attempt
commsInterface [ The that identifies the public IP address (required for PASV and EPSV)
리턴 System

FtpServer() 공개 메소드

Initializes a new instance of the FtpServer class.
public FtpServer ( [ fileSystemClassFactory, [ membershipProvider, [ commsInterface, int port, [ handlerFactory ) : System
fileSystemClassFactory [ The to use to create the for the logged in user.
membershipProvider [ The used to validate a login attempt
commsInterface [ The that identifies the public IP address (required for PASV and EPSV)
port int The port of the FTP server (usually 21)
handlerFactory [ The handler factories to create and instances for new objects
리턴 System

Start() 공개 메소드

Starts the FTP server in the background
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the FTP server
The FTP server cannot be started again after it was stopped.
public Stop ( ) : void
리턴 void