libftdi Archives

Subject: Non-blocking read

From: "Anton A. Litvinov" <mirteney@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 9 Sep 2010 10:11:16 +0600
I want to write a programm in a non-blocking manner
like it is libusb-1.0 ma

// initialise libusb
while (user has not requested application exit) {
    poll(on libusb file descriptors plus any other event sources of interest,
        using any timeout that you like)
    if (poll() indicated activity on libusb file descriptors)
        libusb_handle_events_timeout(ctx, 0);
    // handle events from other sources here
// clean up and exit

With best regards.
E-mail: mirteney@xxxxxxxxx
Jabber: solmir@xxxxxxxxx

libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread