A Stream implementation that wraps a NetworkStream to keep timeout exceptions from escaping Read and causing the connection to close
More...
|
| | HandleTimeoutStream (NetworkStream stream_, TCPTransportImpl transport_) |
| | Create a wrapper around stream_ that will notify transport_ of any timeouts and swallow those exceptions. More...
|
| |
|
override int | Read (byte[] buffer, int offset, int count) |
| |
|
override IAsyncResult | BeginRead (byte[] buffer, int offset, int size, AsyncCallback callback, object state) |
| |
|
override IAsyncResult | BeginWrite (byte[] buffer, int offset, int size, AsyncCallback callback, object state) |
| |
|
void | Close (int timeout) |
| |
|
override int | EndRead (IAsyncResult asyncResult) |
| |
|
override void | EndWrite (IAsyncResult asyncResult) |
| |
|
override void | Flush () |
| |
|
override long | Seek (long offset, SeekOrigin origin) |
| |
|
override void | SetLength (long value) |
| |
|
override void | Write (byte[] buffer, int offset, int count) |
| |
|
|
override bool | CanRead => _stream.CanRead |
| |
|
override bool | CanSeek => _stream.CanSeek |
| |
|
override bool | CanTimeout => _stream.CanTimeout |
| |
|
override bool | CanWrite => _stream.CanWrite |
| |
|
virtual bool | DataAvailable => _stream.DataAvailable |
| |
|
override long | Length => _stream.Length |
| |
|
|
override long | Position [get, set] |
| |
|
override int | ReadTimeout [get, set] |
| |
|
override int | WriteTimeout [get, set] |
| |
A Stream implementation that wraps a NetworkStream to keep timeout exceptions from escaping Read and causing the connection to close
| AMPS.Client.HandleTimeoutStream.HandleTimeoutStream |
( |
NetworkStream |
stream_, |
|
|
TCPTransportImpl |
transport_ |
|
) |
| |
|
inline |
Create a wrapper around stream_ that will notify transport_ of any timeouts and swallow those exceptions.
- Parameters
-
| stream_ | The NetworkStream to wrap and prevent timeout exceptions from escaping |
| transport_ | The TCPTransportImpl to notify of timeout events when they occur. |
The documentation for this class was generated from the following file:
- AMPS.Client/HandleTimeoutStream.cs