hyperionjv / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

BlueZ Thread interrupt while oppening client connection #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The function connect is blocking RFCOMM and L2CAP.
We need to be able to interrupt the connection procedure.

Look how I did this for MS stack (RFCOMM) inner class ConnectThread:
The Thread is created.
If the calling thread is interrupted then socket is closed and connect is
unbooked.

Maybe you can suggest a better solution for BlueZ.
In MS I was unable to use asynchronous socket functions for Bluetooth

Original issue reported on code.google.com by skarzhev...@gmail.com on 22 Dec 2008 at 8:16