Return-Path: Message-ID: Date: Thu, 21 Sep 2006 12:41:41 -0700 From: "Mark S. Townsley" To: "BlueZ users" In-Reply-To: <1158867330.11194.50.camel@localhost> MIME-Version: 1.0 References: <1158867330.11194.50.camel@localhost> Subject: Re: [Bluez-users] RFCOMM error Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0963923210==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0963923210== Content-Type: multipart/alternative; boundary="----=_Part_15346_3447813.1158867701184" ------=_Part_15346_3447813.1158867701184 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Many thanks. That fixed the problem.... Mark On 9/21/06, Marcel Holtmann 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 > ------=_Part_15346_3447813.1158867701184 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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

------=_Part_15346_3447813.1158867701184-- --===============0963923210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============0963923210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0963923210==--