LibUsbDotNet 2.2.8
PollfdsHandleTimeouts Method (sessionHandle)
Library ReferenceMonoLibUsbMonoUsbApiPollfdsHandleTimeouts(MonoUsbSessionHandle)
LibUsbDotNet on SourceForge
Determines whether your application must apply special timing considerations when monitoring libusb's file descriptors.
Declaration Syntax
C#Visual BasicVisual C++
public static int PollfdsHandleTimeouts(
	MonoUsbSessionHandle sessionHandle
)
Public Shared Function PollfdsHandleTimeouts ( _
	sessionHandle As MonoUsbSessionHandle _
) As Integer
public:
static int PollfdsHandleTimeouts(
	[InAttribute] MonoUsbSessionHandle^ sessionHandle
)
Parameters
Return Value
0 if you must call into libusb at times determined by libusb_get_next_timeout, or 1 if all timeout events are handled internally or through regular activity on the file descriptors.
Remarks

This function is only useful for applications which retrieve and poll libusb's file descriptors in their own main loop (The more advanced option).

Ordinarily, libusb's event handler needs to be called into at specific moments in time (in addition to times when there is activity on the file descriptor set). The usual approach is to use libusb_get_next_timeout to learn about when the next timeout occurs, and to adjust your poll()/select() timeout accordingly so that you can make a call into the library at that time.

Some platforms supported by libusb do not come with this baggage - any events relevant to timing will be represented by activity on the file descriptor set, and libusb_get_next_timeout will always return 0. This function allows you to detect whether you are running on such a platform.

Since v1.0.5.

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)