C# Class SmtpServer.Protocol.SmtpStateMachine

Inheritance: ISmtpStateMachine
Mostrar archivo Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

Method Description
SmtpStateMachine ( ISmtpServerOptions options, SmtpCommandFactory commandFactory ) : System

Constructor.

TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Advances the enumerator to the next command in the stream.

Private Methods

Method Description
ISmtpStateMachine ( SmtpState state, string command ) : void

Remove the specified command from the state.

Method Details

SmtpStateMachine() public method

Constructor.
public SmtpStateMachine ( ISmtpServerOptions options, SmtpCommandFactory commandFactory ) : System
options ISmtpServerOptions The options to assist when configuring the state machine.
commandFactory SmtpCommandFactory The SMTP command factory.
return System

TryAccept() public method

Advances the enumerator to the next command in the stream.
public TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
tokenEnumerator SmtpServer.Protocol.Text.TokenEnumerator The token enumerator to accept the command from.
command SmtpCommand The command that was found.
errorResponse SmtpResponse The error response that indicates why a command could not be accepted.
return bool