public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Stefan Mischke <survivor@uni-paderborn.de>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] L2CAP and SDP interface specification?
Date: Wed, 07 Apr 2004 16:39:35 +0200	[thread overview]
Message-ID: <1081348775.8755.9.camel@pegasus> (raw)
In-Reply-To: <40718881.4050709@uni-paderborn.de>

Hi Stefen,

> in your "btk2003_slides.pdf" (very nice) you say on page 13 "C/C++ API
> f=FCr Kommandos und Events". Where is it? I can send commands easily vi=
a
> the bluez-libs' "hci_send_cmd", but how do I get the result/event? Ok,
> I could use "hci_send_req", but that function blocks until timeout.
> Isn't there a simple way to use "hci_send_cmd" and register some kind
> of callback for the result/event? Isn't bluetooth devices
> interrupt-driven? If not, isn't there some kind of global polling and
> event dispatching instance? I thought it was the hcid.

you can poll on the HCI socket and of course you can also use the HCI
filter to look only for specific events.

> By "Glib" you mean "glib-ectomy.c" of hcid? In it's main loop it does
> "rc =3D poll(ufds, nfds, -1);". Does it wait/block forever for an event
> or what does "-1" mean? Btw, what's hcid for (except for initializing
> the device and giving it a name)?=20

I meant Glib (www.gtk.org) and the hcid is for device initialization and
it contains the security manager. And btw try "man poll" ;)

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

      reply	other threads:[~2004-04-07 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-05 15:01 [Bluez-devel] L2CAP and SDP interface specification? Stefan Mischke
2004-04-05 15:40 ` Marcel Holtmann
2004-04-05 16:25   ` Stefan Mischke
2004-04-07 14:39     ` Marcel Holtmann [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=1081348775.8755.9.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=survivor@uni-paderborn.de \
    /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