Hi libusb-devel,
I'm sending isochronous transfers from host to device with libusb on Linux. I want to keep the host buffer full so that an isochronous packet is transmitted in every frame, but I don't want to submit transfers too fast which would overflow the host buffer. I plan to do this by waiting on the endpoint file descriptor for the POLLOUT event before submitting each tranfer. Is this the best way?
When I poll the endpoint file descriptor after submitting a transfer, I can get a POLLOUT event. But when I poll the endpoint descriptor before submitting a transfer, the POLLOUT event never occurs - it stays blocked from writing forever. I am handling events inside the polling loop in both cases. How can I poll the endpoint descriptor for the POLLOUT event before submitting each transfer?
Thank you,
LibUsb User
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel