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. 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