Click or drag to resize

BBStreamRead Method

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.

Namespace:  Brainboxes.IO
Assembly:  Brainboxes.IO (in Brainboxes.IO.dll) Version: 1.5.0.8
Syntax
public override int Read(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: SystemByte

[Missing <param name="buffer"/> documentation for "M:Brainboxes.IO.BBStream.Read(System.Byte[],System.Int32,System.Int32)"]

offset
Type: SystemInt32

[Missing <param name="offset"/> documentation for "M:Brainboxes.IO.BBStream.Read(System.Byte[],System.Int32,System.Int32)"]

count
Type: SystemInt32

[Missing <param name="count"/> documentation for "M:Brainboxes.IO.BBStream.Read(System.Byte[],System.Int32,System.Int32)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Brainboxes.IO.BBStream.Read(System.Byte[],System.Int32,System.Int32)"]

See Also