| 
      
      
      From: Stephan M. <ste...@we...> - 2006-06-19 20:54:03
      
     | 
| You are right. This function had a small bug that I fixed some weeks ago. The new version is in already the CVS. See http://libusb-win32.cvs.sourceforge.net/libusb-win32/libusb/src/windows.c?revision=1.44&view=markup > Stephan, > > in usb_submit_async > > if(!DeviceIoControl(c->dev->impl_info, > c->control_code, > &c->req, sizeof(libusb_request), > c->bytes, > c->size, &ret, &c->ol)) > { > if(GetLastError() != ERROR_IO_PENDING) > { > usb_error("usb_submit_async: submitting request failed, " > "win error: %s", usb_win_error_to_string()); > return -usb_win_error_to_errno(); > } > } > > return ret; > > > > ret has the bytes_read. however, the value got returned before the value is > updated. I think usb_submit_async should take a parameter in as a > &bytes_read. > > -Andrew > > > ----- Original Message ----- > From: "Stephan Meyer" <ste...@we...> > To: <lib...@li...>; "Andrew Xiang" > <xi...@gr...> > Sent: Monday, June 19, 2006 12:44 PM > Subject: Re: [Libusb-win32-devel] win-libusb async read > > > > > > See > > > > http://sourceforge.net/mailarchive/message.php?msg_id=10083829 > > > > > > > > > I got the simple bulk write/read to work. However, I would like to have > a > > > thread waiting on the read all the time and process the read data > > > independent of the write. How would I implement async read using the > libusb? > > > anyone has an example? > > > > > > thanks > > > Andrew > > > > > > > > > > > > _______________________________________________ > > > Libusb-win32-devel mailing list > > > Lib...@li... > > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > ______________________________________________________________________ > > XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club! > > Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130 > > > > > > > > _______________________________________________ > > Libusb-win32-devel mailing list > > Lib...@li... > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > > > > > > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 |