public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] ACL link creation in userspace
@ 2007-01-12 15:36 Marco Pracucci
  2007-01-12 16:12 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Pracucci @ 2007-01-12 15:36 UTC (permalink / raw)
  To: Bluez Users ML

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

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

end of thread, other threads:[~2007-01-12 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 15:36 [Bluez-users] ACL link creation in userspace Marco Pracucci
2007-01-12 16:12 ` Marcel Holtmann

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