C# Class SuperSocket.Ftp.FtpService.DataConnection

Afficher le fichier Open project: kerryjiang/SuperSocket.FtpServer Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void
DataConnection ( FtpSession session, Socket listenSocket, int port ) : System
GetStream ( SuperSocket.Ftp.FtpService.FtpContext context ) : Stream

Gets the stream.

RunDataConnection ( ) : Task
SendResponse ( SuperSocket.Ftp.FtpService.FtpContext context, List list ) : void

Méthodes protégées

Méthode Description
OnClose ( ) : void

Called when [close].

Private Methods

Méthode Description
GetFixedLength ( long length ) : string
GetListTimeString ( System.DateTime time ) : string
InitStream ( SuperSocket.Ftp.FtpService.FtpContext context ) : void
ProcessAccept ( SocketAsyncEventArgs e ) : void
StopListener ( ) : void
TryListenSocketPort ( IPAddress address, int tryPort ) : Socket
TryOpenDataConnection ( FtpSession session, DataConnection &dataConnection ) : bool
TryOpenDataConnection ( FtpSession session, int port, DataConnection &dataConnection ) : bool
acceptEventArgs_Completed ( object sender, SocketAsyncEventArgs e ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

DataConnection() public méthode

public DataConnection ( FtpSession session, Socket listenSocket, int port ) : System
session FtpSession
listenSocket Socket
port int
Résultat System

GetStream() public méthode

Gets the stream.
public GetStream ( SuperSocket.Ftp.FtpService.FtpContext context ) : Stream
context SuperSocket.Ftp.FtpService.FtpContext The context.
Résultat Stream

OnClose() protected méthode

Called when [close].
protected OnClose ( ) : void
Résultat void

RunDataConnection() public méthode

public RunDataConnection ( ) : Task
Résultat Task

SendResponse() public méthode

public SendResponse ( SuperSocket.Ftp.FtpService.FtpContext context, List list ) : void
context SuperSocket.Ftp.FtpService.FtpContext
list List
Résultat void