Hi,

I'm trying to integrate libusb, with Cypress FX2, with libev (event loop) by 
using the "polling and timing" function:

http://libusb.sourceforge.net/api-1.0/group__poll.html

So by calling the libusb_get_pollfds It return 3 file descriptor.

So my question is why 3?

2 files descriptor (POLLIN) that could be read.
1 file descriptor (POLLOUT) that could be write.

So normally in the sync API the endpoint6 (0x08) was used for writing, with 
libusb_bulk_transfer() and endpoint (0x88) was used to read data.

So I can see that POLLOUT could be the endpoint8 and 1 of the POLLIN the 
endpoint6? If this is correct what is the other POLLIN file descriptor?
How could I distinguish them?

Still searching in the Documentation/Code but this is not clear to me, yet.

Thanks,

-- KA



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to