From: Marco Pracucci <development@pracucci.com>
To: Bluez Users ML <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] ACL link creation in userspace
Date: Fri, 12 Jan 2007 15:36:57 +0000 [thread overview]
Message-ID: <45A7AB19.50605@pracucci.com> (raw)
Dear Marcel,
I would like to receive your opinion about ACL link created in
userspace. I know that you ever discourage the creation of an ACL link
inside an application, but I would like to better understand the reasons.
I have an application that needs to read remote features, remote version
and search for services (SDP). Bluez provides API to read remote
features and version, but the application should pass the ACL handle as
argument. So, I think there are just two solutions:
1) Get the ACL handle (ioctl), if there is already an ACL link
2) Create an ACL link (hci_create_connection), if no ACL link has been
established yet
I don't want to establish the ACL link more that 1 time for remote
device, so I think that I must create the ACL link in userspace if there
is no ACL already established. However, I get several errors that I
suppose are collateral effects of this solution. For example, an error
occours if there are 2 threads (in parallel) that:
- hci_create_connection()
- read remote features
- read remote version
- sdp_connect() error: Operation already in progress
Can you explain me why I should not create an ACL link in userspace?
Do you have any idea how to bypass this limitation?
Thanks,
Marco Pracucci
-------------------------------------------------------------------------
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
next reply other threads:[~2007-01-12 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 15:36 Marco Pracucci [this message]
2007-01-12 16:12 ` [Bluez-users] ACL link creation in userspace Marcel Holtmann
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=45A7AB19.50605@pracucci.com \
--to=development@pracucci.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox