2004-01-09 03:38:09

by Anthony Yulo

[permalink] [raw]
Subject: [Bluez-devel] Bluetoooth and Threads?

Hi!

I'm just wondering if multiple threads can have their own bluetooth stack?

I'm planning of a single program that uses threads, one thread does only
device discovery.. and then store the devices on a list/queue.. and then
maybe a couple of threads that reads from the queue and send data from the
devices on the queue using RFCOMM.. maybe i can have seven threads since
this is the maximum number bluetooth allows...

is this possible?

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-01-09 13:38:07

by Nils Faerber

[permalink] [raw]
Subject: Re: [Bluez-devel] Bluetoooth and Threads?

Am Fr, den 09.01.2004 schrieb Anthony Yulo um 04:38:
> Hi!
Hi!

> I'm just wondering if multiple threads can have their own bluetooth stack?

Errrmm... several *stacks* ??
Do you use several IP stacks for several IP connections??
I don't...

> I'm planning of a single program that uses threads, one thread does only
> device discovery.. and then store the devices on a list/queue.. and then
> maybe a couple of threads that reads from the queue and send data from the
> devices on the queue using RFCOMM.. maybe i can have seven threads since
> this is the maximum number bluetooth allows...
> is this possible?

Sure, perfectly possible.
You simply open the appropriate sockets in each thread and that's it.
CU
nils faerber

--
kernel concepts Tel: +49-271-771091-12
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen D1 : +49-170-2729106
--



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel