Yes, it is listening.
> What happens to an incoming connection before accept is
> executed?
It will probably timeout if accept() is not called quickly enough. Try it out.
> 2. Can multiple incoming connections exist on the same
> BluetoothServerSocket?
No. RFCOMM only allows once connection per channel at a time. However
you can accept() a second connection after the first has closed.
> 3. Is there a limit for BluetoothSockets and BluetoothServerSocket
> instances?
No, but there are only 30 RFCOMM channels.
> 4. Can the RFCOMM created for a listening BluetoothServerSocket
> receive more than one connection?
See (3).
> 5. What happens to incoming connections after returning from accept()
> and calling it back again?
calling accept() again? It should block until a second incoming
connection (which can only happen after the first connection is
closed).
> 6. How ia the SDPrecord database mainained by Android/Bluez?
It's maintained by Bluez's bluetoothd daemon.
> 7. Is there a Queue for incoming connections? What happens to the
> second incoming connection?
See (3).
> 8. after incoking accept - what happens to the server socket? Does it
> create a new RFCOMM channel? Or is it using the same RFCOMM channel
> for all connections to the same UUID?
Same RFCOMM channel.
> 9.the SDK states that consecutive accept calls will get all incoming
> connections - does this mean that the BluetoothSocket in server mode
> supports multiple connections? How about multiple connections from the
> same host? (This is a problem due to the RFCOM DLC).
See (3).
>
> Thanks,
> Chen Ganir
>
> --
>
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to
android-...@googlegroups.com.
> To unsubscribe from this group, send email to
android-platfo...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/android-platform?hl=.
>
>
>