• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Connection timeout + Concurrent connections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Next by Date: Re: Connection timeout + Concurrent connections
  • Next by thread: Re: Connection timeout + Concurrent connections
  • Index(es):
    • Date
    • Thread