Inheritance Hierarchy
SystemMarshalByRefObject
System.IOStream
HidSharpDeviceStream
HidSharpHidStream
HidSharpSerialStream
Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 2.0.0
Syntax
The DeviceStream type exposes the following members.
Methods
Name | Description | |
---|---|---|
BeginRead | Begins an asynchronous read operation. (Overrides StreamBeginRead(Byte, Int32, Int32, AsyncCallback, Object).) | |
BeginWrite | Begins an asynchronous write operation. (Overrides StreamBeginWrite(Byte, Int32, Int32, AsyncCallback, Object).) | |
EndRead | Waits for the pending asynchronous read to complete. (Overrides StreamEndRead(IAsyncResult).) | |
EndWrite | Ends an asynchronous write operation. (Overrides StreamEndWrite(IAsyncResult).) |
Properties
Name | Description | |
---|---|---|
Device |
Gets the Device associated with this stream.
| |
ReadTimeout |
The maximum amount of time, in milliseconds, to wait for the device to send some data.
The default is 3000 milliseconds.
To disable the timeout, set this to Infinite.
(Overrides StreamReadTimeout.) | |
Tag |
An object storing user-defined data about the stream.
| |
WriteTimeout |
The maximum amount of time, in milliseconds, to wait for the device to receive the data.
The default is 3000 milliseconds.
To disable the timeout, set this to Infinite.
(Overrides StreamWriteTimeout.) |
Events
Name | Description | |
---|---|---|
Closed |
Occurs when the stream is closed.
| |
InterruptRequested |
Occurs when Interruptible is true and another process or thread with higher priority
would like to open the stream.
|
See Also