C# Class LumiSoft.Net.SMTP.Server.SMTP_Session

This class implements SMTP session. Defined RFC 5321.
Inheritance: LumiSoft.Net.TCP.TCP_ServerSession
ファイルを表示 Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
OnSessionTimeout ( ) : void

Is called by server when session has timed out.

Private Methods

Method Description
AUTH ( string argsText ) : void
BeginBDATCmd ( string argsText ) : void
BeginDataCmd ( string argsText ) : void
BeginRecieveCmd ( ) : void

Starts recieveing command.

EHLO ( string argsText ) : void
EXPN ( ) : void
EndBDatCmd ( SocketCallBackResult result, long count, Exception exception, object tag ) : void
EndDataCmd ( SocketCallBackResult result, long count, Exception exception, object tag ) : void

Is called when DATA command is finnished.

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.

HELO ( string argsText ) : void
HELP ( ) : void
MAIL ( 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.

QUIT ( string argsText ) : void
RCPT ( string argsText ) : void
RSET ( string argsText ) : void
ResetState ( ) : void
SMTP_Session ( Socket clientSocket, SMTP_Server server, SocketLogger logWriter ) : System

Default constructor.

StartSession ( ) : void

Starts session.

SwitchCommand ( string SMTP_commandTxt ) : bool

Executes SMTP command.

VRFY ( ) : void

Method Details

OnSessionTimeout() public method

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