C# Class SuperSocket.Ftp.FtpService.DataConnection

Mostra file Open project: kerryjiang/SuperSocket.FtpServer Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnClose ( ) : void

Called when [close].

Private Methods

Method 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 method

public Close ( ) : void
return void

DataConnection() public method

public DataConnection ( FtpSession session, Socket listenSocket, int port ) : System
session FtpSession
listenSocket Socket
port int
return System

GetStream() public method

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

OnClose() protected method

Called when [close].
protected OnClose ( ) : void
return void

RunDataConnection() public method

public RunDataConnection ( ) : Task
return Task

SendResponse() public method

public SendResponse ( SuperSocket.Ftp.FtpService.FtpContext context, List list ) : void
context SuperSocket.Ftp.FtpService.FtpContext
list List
return void