C# Class Papercut.Smtp.Connection

The connection.
Mostra file Open project: seif/papercut-web

Public Methods

Method 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.

Protected Methods

Method Description
OnConnectionClosed ( EventArgs e ) : void

The on connection closed.

Private Methods

Method Description
BeginReceive ( ) : void

The begin receive.

ReceiveCallback ( IAsyncResult result ) : void

The receive callback.

SendCallback ( IAsyncResult result ) : void

The send callback.

Method Details

Close() public method

The close.
public Close ( ) : void
return void

Close() public method

The close.
public Close ( bool triggerEvent ) : void
triggerEvent bool /// The trigger event. ///
return void

Connection() public method

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. ///
return System

OnConnectionClosed() protected method

The on connection closed.
protected OnConnectionClosed ( EventArgs e ) : void
e System.EventArgs /// The e. ///
return void

Send() public method

The send.
public Send ( string message ) : IAsyncResult
message string /// The message. ///
return IAsyncResult

Send() public method

The send.
public Send ( byte data ) : void
data byte /// The data. ///
return void