C# Class LumiSoft.Net.FTP.Server.FTP_Session

FTP Session.
Inheritance: LumiSoft.Net.SocketServerSession
Mostrar archivo Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
FTP_Session ( Socket clientSocket, FTP_Server server, string sessionID, SocketLogger logWriter ) : System

Default constructor.

OnSessionTimeout ( ) : void

Is called by server when session has timed out.

Private Methods

Method Description
APPE ( string argsText ) : void
BeginRecieveCmd ( ) : void

Starts recieveing command.

CDUP ( string argsText ) : void
CWD ( string argsText ) : void
DELE ( string argsText ) : void
EndRecieveCmd ( SocketCallBackResult result, long count, Exception exception, object tag ) : void

Is called if command is recieved.

EndSession ( ) : void

Ends session, closes socket.

GetAndNormailizePath ( string path ) : string
GetDataConnection ( ) : Socket
LIST ( string argsText ) : void
MKD ( string argsText ) : void
NLST ( string argsText ) : void
NOOP ( ) : void
OnError ( Exception x ) : void

Is called when error occures.

OnSocketActivity ( object sender, EventArgs e ) : void

Is called if there was some activity on socket, some data sended or received.

PASS ( string argsText ) : void
PASV ( string argsText ) : void
PORT ( string argsText ) : void
PWD ( ) : void
QUIT ( ) : void
RETR ( string argsText ) : void
RMD ( string argsText ) : void
RNFR ( string argsText ) : void
RNTO ( string argsText ) : void
STOR ( string argsText ) : void
SYST ( ) : void
StartSession ( ) : void

Starts session.

SwitchCommand ( string commandTxt ) : bool

Parses and executes POP3 commmand.

TYPE ( string argsText ) : void
USER ( string argsText ) : void

Method Details

FTP_Session() public method

Default constructor.
public FTP_Session ( Socket clientSocket, FTP_Server server, string sessionID, SocketLogger logWriter ) : System
clientSocket Socket Referance to socket.
server FTP_Server Referance to FTP server.
sessionID string Session ID which is assigned to this session.
logWriter LumiSoft.Net.SocketLogger Log writer.
return System

OnSessionTimeout() public method

Is called by server when session has timed out.
public OnSessionTimeout ( ) : void
return void