C# Class LumiSoft.Net.POP3.Server.POP3_Session

POP3 Session.
Inheritance: LumiSoft.Net.SocketServerSession
Show file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
OnSessionTimeout ( ) : void

Is called by server when session has timed out.

POP3_Session ( Socket clientSocket, POP3_Server server, SocketLogger logWriter ) : System

Default constructor.

Private Methods

Method Description
APOP ( string argsText ) : void
AUTH ( string argsText ) : void
BeginRecieveCmd ( ) : void

Starts recieveing command.

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

Is called if command is recieved.

EndSend ( SocketCallBackResult result, long count, Exception exception, object tag ) : void

Is called when asynchronous send completes.

EndSession ( ) : void

Ends session, closes socket.

LIST ( 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
QUIT ( ) : void
RETR ( string argsText ) : void
RSET ( ) : void
Reset ( ) : void
STAT ( ) : void
StartSession ( ) : void

Starts session.

SwitchCommand ( string POP3_commandTxt ) : bool

Parses and executes POP3 commmand.

TOP ( string argsText ) : void
UIDL ( string argsText ) : void
USER ( string argsText ) : void
Update ( ) : void

Method Details

OnSessionTimeout() public method

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

POP3_Session() public method

Default constructor.
public POP3_Session ( Socket clientSocket, POP3_Server server, SocketLogger logWriter ) : System
clientSocket Socket Referance to socket.
server POP3_Server Referance to POP3 server.
logWriter LumiSoft.Net.SocketLogger Log writer.
return System