Connection timeout + Concurrent connections
Connection timeout + Concurrent connections
- Subject: Connection timeout + Concurrent connections
- From: email@hidden
- Date: Wed, 01 Aug 2007 09:10:24 +0200
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden