public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] RFCOMM error
@ 2006-09-21 19:30 Mark S. Townsley
  2006-09-21 19:35 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Mark S. Townsley @ 2006-09-21 19:30 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

Hi:

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?

thanks

Mark

[-- Attachment #1.2: Type: text/html, Size: 702 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] RFCOMM error
  2006-09-21 19:30 [Bluez-users] RFCOMM error Mark S. Townsley
@ 2006-09-21 19:35 ` Marcel Holtmann
  2006-09-21 19:41   ` Mark S. Townsley
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2006-09-21 19:35 UTC (permalink / raw)
  To: BlueZ users

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] RFCOMM error
  2006-09-21 19:35 ` Marcel Holtmann
@ 2006-09-21 19:41   ` Mark S. Townsley
  0 siblings, 0 replies; 3+ messages in thread
From: Mark S. Townsley @ 2006-09-21 19:41 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 1201 bytes --]

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
>

[-- Attachment #1.2: Type: text/html, Size: 1896 bytes --]

[-- Attachment #2: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-21 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-21 19:30 [Bluez-users] RFCOMM error Mark S. Townsley
2006-09-21 19:35 ` Marcel Holtmann
2006-09-21 19:41   ` Mark S. Townsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox