From: Randy Yates <yates@digitalsignallabs.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Bluez Mailing List <linux-bluetooth@vger.kernel.org>
Subject: Re: rfcomm example setup
Date: Mon, 04 Mar 2013 15:30:35 -0500 [thread overview]
Message-ID: <8738waucus.fsf@randy.site> (raw)
In-Reply-To: <CABBYNZ+L8=8dweH02e4dwaUEfcY0FY_yF3dK1XjZd+X9FwGcYg@mail.gmail.com> (Luiz Augusto von Dentz's message of "Mon, 4 Mar 2013 22:25:12 +0200")
Thanks!
--Randy
Luiz Augusto von Dentz <luiz.dentz@gmail.com> writes:
> Hi Randy,
>
> On Mon, Mar 4, 2013 at 6:42 PM, Randy Yates <yates@digitalsignallabs.com> wrote:
>> Can someone please point me to an example of the bind, listen, and
>> accept structures and parameters for setting up an RFCOMM socket using
>> file descriptor (fd) received from the NewConnection() method in
>> profile-api.txt?
>>
>> I tried the setup in "Bluetooth Essentials for Programmers," omitting
>> the socket() call (since bluez provides the fd) but it's crashing right
>> at the bind() call (never reaches the "bt 0.1" fprintf()). See
>> attachment.
>
> You don't have to bind, the socket is already in connected state so
> you can already do read/write operations. Btw, don't forget to respond
> to NewConnection otherwise it will timeout and bluetoothd will
> probably disconnect the fd.
--
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com
prev parent reply other threads:[~2013-03-04 20:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 16:42 rfcomm example setup Randy Yates
2013-03-04 20:25 ` Luiz Augusto von Dentz
2013-03-04 20:30 ` Randy Yates [this message]
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=8738waucus.fsf@randy.site \
--to=yates@digitalsignallabs.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox