2004-11-30 23:22:56

by Steffen Larsen

[permalink] [raw]
Subject: [Bluez-devel] using select()?

Hi there,

Is there anyware some examples or any source code in the BlueZ utils. where they use the standard network select() function?
I really want to use this instead of the more "heavier" fork() function. :-)

examples? links?


Kind Regards.
/Steffen Larsen


2004-12-01 09:24:33

by Xavier Garreau

[permalink] [raw]
Subject: Re: [Bluez-devel] using select()?

Hi,

> Is there anyware some examples or any source code in the BlueZ utils.
> where they use the standard network select() function?
> I really want to use this instead of the more "heavier" fork() function. :-)

Marcel sent us some time ago an example which uses poll on hci raw sockets.

A cached version can be found here :
http://www.xgarreau.org/temp/bluetooth_docs/bluez/mh_hci_raw.c

Maybe Marcel has a more recent example ?

Regards,
Xavier Garreau


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-12-01 06:23:39

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] using select()?

Hi Steffen,

> Is there anyware some examples or any source code in the BlueZ utils.
> where they use the standard network select() function?

there is no difference between using select() with BlueZ. You use poll()
or select() as you used to. Check the manual pages for more help.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel