All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] RFCOMM error
Date: Thu, 21 Sep 2006 21:35:30 +0200	[thread overview]
Message-ID: <1158867330.11194.50.camel@localhost> (raw)
In-Reply-To: <be976db60609211230m6333bca7x4778a76f23bfbc8a@mail.gmail.com>

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

  reply	other threads:[~2006-09-21 19:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-21 19:30 [Bluez-users] RFCOMM error Mark S. Townsley
2006-09-21 19:35 ` Marcel Holtmann [this message]
2006-09-21 19:41   ` Mark S. Townsley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1158867330.11194.50.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.