Re: [Bluez-devel] Blocking connect(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) => EINPROGRESS

Marcel Holtmann
2007-10-22T09:22:26Z

Hi Oli,

> I am trying to perform RFCOMM connection to a mobile phone thanks to a
> blocking "connect(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM)" (Blocking is
> the only way for me to get a "Connection Refused" return status !), and if
> the phone is still asking for the authorization when the connect times out,
> the connect and leaves with a EINPROGRESS status.

I have no idea what you are trying to achieve here. Anyway, the RFCOMM
socket behaves like every other TCP socket. So in the non-blocking case
apply the same stuff you use when programming TCP.

Regards

Marcel