[Bluez-users] nonblocking socket

Jeff Wilson
2006-08-02T22:26:40Z

I am using bluez-libs-2.25 on 2.6.11-mh2 to develop BlueZ support for
a multithreaded process. My BlueZ contribution opens a non-blocking
RFCOMM socket in one thread, and blocking SDP query in another. So
far, I have RFCOMM support working, and I have also integrated
Bluetooth inquiry and SDP queries.

When I set RFCOMM to nonblocking, the sdp_connect returns an error,
with errno set to EALREADY. Why does one thread affect the other?

This same SDP query worked fine before I change the RFCOMM to nonblocking.

I can provide hcidump or source code if needed.

Thanks,