HandleEvents Method (sessionHandle)

LibUsbDotNet

LibUsbDotNet 2.2.8 HandleEvents Method (sessionHandle)
Library ReferenceMonoLibUsbMonoUsbApiHandleEvents(MonoUsbSessionHandle)
LibUsbDotNet on SourceForge
Handle any pending events in blocking mode with a sensible timeout.
Declaration Syntax
C# Visual Basic Visual C++
public static int HandleEvents(
	MonoUsbSessionHandle sessionHandle
)
Public Shared Function HandleEvents ( _
	sessionHandle As MonoUsbSessionHandle _
) As Integer
public:
static int HandleEvents(
	[InAttribute] MonoUsbSessionHandle^ sessionHandle
)
Parameters
sessionHandle (MonoUsbSessionHandle)
A valid MonoUsbSessionHandle.
Return Value
0 on success, or a MonoUsbError code on other failure.
Remarks

This timeout is currently hardcoded at 2 seconds but we may change this if we decide other values are more sensible. For finer control over whether this function is blocking or non-blocking, or the maximum timeout, use libusb_handle_events_timeout instead.

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: Polling and timing

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: 2.2.8.104 (2.2.8.104)