C# Класс LumiSoft.Net.SMTP.Server.SMTP_Session

This class implements SMTP session. Defined RFC 5321.
Наследование: LumiSoft.Net.TCP.TCP_ServerSession
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
OnSessionTimeout ( ) : void

Is called by server when session has timed out.

Приватные методы

Метод Описание
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

Описание методов

OnSessionTimeout() публичный Метод

Is called by server when session has timed out.
public OnSessionTimeout ( ) : void
Результат void