From: "Gustavo F. Padovan" <gustavo@padovan.org>
To: Pavan Savoy <pavan_savoy@yahoo.co.in>
Cc: Marcel Holtmann <marcel@holtmann.org>,
linux-bluetooth@vger.kernel.org, shitiz_kumar@ti.com
Subject: Re: l2cap connection id in user-space
Date: Wed, 14 Apr 2010 02:51:10 -0300 [thread overview]
Message-ID: <20100414055110.GB21193@vigoh> (raw)
In-Reply-To: <1271206772.22838.0.camel@localhost.localdomain>
Hi Pavan,
* Marcel Holtmann <marcel@holtmann.org> [2010-04-13 17:59:32 -0700]:
> Hi Pavan,
>
> > Is there a possibility as of now for me to extract the l2cap connection ID into my application ?
> >
> > I require 2 sets of information about an L2CAP connection in my bluetooth application, I require the connection ID on connection to a remote headset/sink, and also the maximum packet size for that connection (which I think is the MTU, I can get via the getsockopt).
>
> you need a recent kernel and then getsockname() and getpeername() will
> give you the SCID and DCID.
Sorry for the wrong info, I didn't know about that calls inside L2CAP.
;)
--
Gustavo F. Padovan
http://padovan.org
prev parent reply other threads:[~2010-04-14 5:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-13 20:56 l2cap connection id in user-space Pavan Savoy
2010-04-13 21:19 ` Gustavo F. Padovan
2010-04-13 21:24 ` Pavan Savoy
2010-04-13 21:39 ` Gustavo F. Padovan
2010-04-14 0:59 ` Marcel Holtmann
2010-04-14 5:51 ` Gustavo F. Padovan [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=20100414055110.GB21193@vigoh \
--to=gustavo@padovan.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=pavan_savoy@yahoo.co.in \
--cc=shitiz_kumar@ti.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