Am Montag 08 März 2010 17:23:21 schrieb Bastien Nocera: > On Sat, 2010-03-06 at 16:49 +0100, Hendrik Sattler wrote: > > Am Samstag 06 März 2010 16:44:00 schrieb Hendrik Sattler: > > > Am Freitag 05 März 2010 19:33:08 schrieb Bastien Nocera: > > > > It should work, but it doesn't. > > > > > > Looking at the source of libusb, this is a bit messed up, there. > > > In os/linux_usb.c, the only add the FD for POLLOUT (forgetting POLLIN) > > > and in os/darwin_usb.c, the only add it for POLLIN (forgetting > > > POLLOUT). Someone should go upstream and fix that! > > > Current suggestion: the wanted fd is always the last fd in the pollfd > > > list, ignoring the events field. This will then also work with MacOS X. > > > And that's also why your POLLOUT fd worked (the other one are all > > > POLLIN) on Linux. > > > > Try the patch below. It can only work with one connection per process > > (already working on it). > > And with the current master but ac36a81faf8a553a1c7cf22d7420c3c3d1b63d5f > reverted (and without the in-line patch applied, obviously)
Whatever the reason but obviously the USB fd only works when polled for writing :-/ So what exactly is the reason for getting the USB fd when libusb is doing it all by itself? HS ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users