Click or drag to resize

BBStream Class

Stream wrapper which adds ability to flush and check for available data on all streams which need to be accessed. Also adds ability to have a timeout on stream read and writes without the underlying connection closing on failure
Inheritance Hierarchy

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: (
public abstract class BBStream : Stream

The BBStream type exposes the following members.

Public methodBeginRead (Inherited from Stream.)
Public methodBeginWrite (Inherited from Stream.)
Public methodClose (Inherited from Stream.)
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodDispose (Inherited from Stream.)
Public methodEndRead (Inherited from Stream.)
Public methodEndWrite (Inherited from Stream.)
Public methodEquals (Inherited from Object.)
Public methodFlush
Clear the read and write streams
(Overrides StreamFlush.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Public methodRead
implement a read timeout which does not cause the connection to go into an unknown state. Specifically NetworkStream timeouts cause disconnection, we don't want the protocol/device objects to have to know about or handle this. Disconnecting and Reconnecting the connection on timeout can be extremely slow instead, implement our own timeout mechanism.
(Overrides StreamRead(Byte, Int32, Int32).)
Public methodReadByte (Inherited from Stream.)
Public methodSeek (Overrides StreamSeek(Int64, SeekOrigin).)
Public methodSetLength (Overrides StreamSetLength(Int64).)
Public methodToString (Inherited from Object.)
Public methodWrite (Overrides StreamWrite(Byte, Int32, Int32).)
Public methodWriteByte (Inherited from Stream.)
See Also