C# Class Papercut.Smtp.Connection

The connection.
Afficher le fichier Open project: seif/papercut-web

Méthodes publiques

Méthode Description
Close ( ) : void

The close.

Close ( bool triggerEvent ) : void

The close.

Connection ( int connectionID, Socket client, ProcessData processData ) : System

Initializes a new instance of the Connection class. Initializes a new instance of the Connection class.

Send ( string message ) : IAsyncResult

The send.

Send ( byte data ) : void

The send.

Méthodes protégées

Méthode Description
OnConnectionClosed ( EventArgs e ) : void

The on connection closed.

Private Methods

Méthode Description
BeginReceive ( ) : void

The begin receive.

ReceiveCallback ( IAsyncResult result ) : void

The receive callback.

SendCallback ( IAsyncResult result ) : void

The send callback.

Method Details

Close() public méthode

The close.
public Close ( ) : void
Résultat void

Close() public méthode

The close.
public Close ( bool triggerEvent ) : void
triggerEvent bool /// The trigger event. ///
Résultat void

Connection() public méthode

Initializes a new instance of the Connection class. Initializes a new instance of the Connection class.
public Connection ( int connectionID, Socket client, ProcessData processData ) : System
connectionID int /// The connection id. ///
client Socket /// The client. ///
processData ProcessData /// The process data. ///
Résultat System

OnConnectionClosed() protected méthode

The on connection closed.
protected OnConnectionClosed ( EventArgs e ) : void
e System.EventArgs /// The e. ///
Résultat void

Send() public méthode

The send.
public Send ( string message ) : IAsyncResult
message string /// The message. ///
Résultat IAsyncResult

Send() public méthode

The send.
public Send ( byte data ) : void
data byte /// The data. ///
Résultat void