2004-06-01 16:32:06

by Collin R. Mulliner

[permalink] [raw]
Subject: [Bluez-devel] RFCOMM support for nonblocking sockets

Hi,

does anybody know if O_NONBLOCK is supported for RFCOMM?

I allways get "errno == 11" and
perror tells me "Resource temporarily unavailable"

If I don't do: fcntl(sock, F_SETFL, O_NONBLOCK) the code works fine.


thanks ... Collin

--
Collin R. Mulliner <[email protected]>
BETAVERSiON Systems [http://www.betaversion.net]
info/pgp: finger [email protected]
USS Enterprise Bumperstricker: Our other starship separates into 3
pieces!


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-06-01 16:41:11

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] RFCOMM support for nonblocking sockets

Hi Collin,

> does anybody know if O_NONBLOCK is supported for RFCOMM?
>
> I allways get "errno == 11" and
> perror tells me "Resource temporarily unavailable"
>
> If I don't do: fcntl(sock, F_SETFL, O_NONBLOCK) the code works fine.

the non-blocking support should work. What kernel version do you? Show
us your code.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel