Connection timeout + Concurrent connections
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com User-agent: www.mail386.com Hi all, I've created a C application that transfers file to the BT device. I'm using the same constructs as the OBEXSample. I would like to abort transfer if the user of the BT device doesn't acknowledge transfer for more than 10 seconds. Currently it is waiting indefinitely. I haven't seen any function in Obex.h that would adjust such timeout, although there are some timeout error codes as well as timeout response opcodes. Also, I've seen some functions in IOBluetoothUserLib.h where one can adjust timeout, though they are not documented and I believe they are too low level. I was also thinking to fire CFRunLoopTimer after the connection is being made and handle timeout manually, though I would prefer to use something from IOBluetooth framework (if it exists). Any ideas? Also, what is a preferable way to handle concurrent connections (to different BT devices)? Using one thread per connection or one thread for all connections and registering CFRunLoopSource that will trigger a new connection. I've read somewhere that BT stuff should be done only in the main thread. Is this correct? Thank you, Boris ___________________________________________________________________________ Najhitrejši brezplačni klicni dostop :: Varno in zanesljivo po internetu Obiščite http://www.dialup386.com/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
b00mer@mail386.com