Skip to contentSkip to conversation

using select()?

Bluez-devel Steffen Larsen 3 participants 3 messages Nov 30, 2004 – Dec 1, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw

Hi Steffen,

Quoted 2 lines

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

#2 lore raw
In reply to Steffen Larsen

Hi,

Quoted 2 lines

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