Mac sample code using USB and CFRunLoopSource
I'm trying to (re-)write a program that uses USB controlled scanners. I've got my USBIOInterfaceInterface set up, so I can send and receive messages over the pipes. I am successfully calling WritePipeTO and ReadPipeTO synchronously but I want to read from the scanner asynchronously. I've tried using ReadPipeAsyncTO, but the callback nev...