Method | Description | |
---|---|---|
Flush ( ) : void |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
|
Flush ( |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
|
Read ( byte buffer, int offset, int count ) : int |
Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. |
|
Read ( byte buffer, int offset, int count, |
Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. |
|
ReadResponse ( |
Read an SMTP server response. Reads a full command response from the SMTP server. |
|
Seek ( long offset, SeekOrigin origin ) : long |
Sets the position within the current stream.
|
|
SetLength ( long value ) : void |
Sets the length of the stream.
|
|
SmtpStream ( Stream source, |
Initializes a new instance of the MailKit.Net.Smtp.SmtpStream class. Creates a new SmtpStream. |
|
Write ( byte buffer, int offset, int count ) : void |
Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. |
|
Write ( byte buffer, int offset, int count, |
Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the SmtpStream and optionally releases the managed resources. Releases the unmanaged resources used by the SmtpStream and optionally releases the managed resources. |
Method | Description | |
---|---|---|
CheckDisposed ( ) : void | ||
Poll ( SelectMode mode, |
||
ReadAhead ( |
||
SmtpStream ( ) : System | ||
TryParseInt32 ( byte text, int &index, int endIndex, int &value ) : bool | ||
ValidateArguments ( byte buffer, int offset, int count ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
public Flush ( |
||
cancellationToken | The cancellation token. | |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer. |
offset | int | The buffer offset. |
count | int | The number of bytes to read. |
return | int |
public Read ( byte buffer, int offset, int count, |
||
buffer | byte | The buffer. |
offset | int | The buffer offset. |
count | int | The number of bytes to read. |
cancellationToken | The cancellation token. | |
return | int |
public ReadResponse ( |
||
cancellationToken | The cancellation token. | |
return | MailKit.Net.Smtp.SmtpResponse |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | The offset into the stream relative to the |
origin | SeekOrigin | The origin to seek from. |
return | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the stream in bytes. |
return | void |
public SmtpStream ( Stream source, |
||
source | Stream | The underlying network stream. |
socket | The underlying network socket. | |
protocolLogger | IProtocolLogger | The protocol logger. |
return | System |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer to write. |
offset | int | The offset of the first byte to write. |
count | int | The number of bytes to write. |
return | void |
public Write ( byte buffer, int offset, int count, |
||
buffer | byte | The buffer to write. |
offset | int | The offset of the first byte to write. |
count | int | The number of bytes to write. |
cancellationToken | The cancellation token. | |
return | void |