Answered this one on android-platform.

On Thu, Nov 12, 2009 at 6:58 AM, Chen Ganir <[email protected]> wrote:
> Hi.
>
> I've read the new API specifications for the BluetoothSocket and i
> encountered some unresolved issues regarding the connection
> limitations for BluetoothServerSocket.
>
> At
> http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#listenUsingRfcommWithServiceRecord%28java.lang.String,%20java.util.UUID%29
> there is a description of the Creation of BluetoothServerSocket.It
> says there that it creates a new listening RFCOMM socket for incoming
> connections. One should use accept to get the connected
> BluetoothSocket from this ServerSocket. My questions are :
> 1. What happens if a connection is established before accept is
> called? Will it hold and wait for an accept command or dropped until
> an accept command is invoked and allow reconnection?
> 2. Can more than one connections exist to a single
> BluetoothSocketServer?
>
> At 
> http://developer.android.com/reference/android/bluetooth/BluetoothServerSocket.html#accept%28%29
> the accept method is described. My questions are :
> 3. Will i get a connected BluetoothSocket for a connection which was
> established prior to calling the accept method?
> 4. What happens if after the first accept, i do another accept? Will i
> get another incoming connection? Or will the BluetoothServerSocket
> block any incoming connections until the previous connection is
> disconnected?
> 5. If Connection Queue is available - what is the limit? how many
> connections will be held in Queue ?
>
> 5. Does the BluetoothServerSocket support multiple connections from
> different devices? What about multiple connections from the same
> device?
>
> At 
> http://code.google.com/p/apps-for-android/source/browse/trunk/BTClickLinkCompete
> there is a sample application demonstrating the use of BluetoothSocket
> and BluetoothServerSocket. This application creates 7 different
> servers (different UUID's) and listens to 7 incoming connections on 7
> different servers. In addition, this sample closes the
> BluetoothServerSocket once a single connection is made to each of the
> servers. This does not show the behavior of the API as described in
> the official API documentation.
>
> I would appreciate any thoughts or ideas you have about this issue.
>
> Thanks,
> Chen Ganir.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to