Many thanks. That fixed the problem....
Mark
On 9/21/06, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Mark,
> I have a an RFCOMM server process listening on one box. From a Linux
> laptop,
> I just wrote a simple RFCOMM client to connect to it. Very simple,
> via AF_BLUETOOTH, SOCK_SEQPACKET and
> BTPROTO_RFCOMM.
>
> I got back errno as Bad File Descriptor. When I strace it, I saw this
> line:
>
> socket(PF_BLUETOOTH, SOCK_SEQPACKET, 3) = -1 ESOCKTNOSUPPORT
> (Socket type not supported).
>
> What does that mean? Did I construct the socket wrong?
for RFCOMM it must be SOCK_STREAM.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users