Return-Path: Message-ID: <002701c6fa09$92116120$0100a8c0@kayleigh> From: "Olivier Le Pogam" To: Date: Fri, 27 Oct 2006 22:50:35 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-4542712308C1=======" Subject: [Bluez-devel] Concurrency / Multi processing questions Reply-To: Olivier Le Pogam , BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --=======AVGMAIL-4542712308C1======= Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01C6FA1A.50D57D20" ------=_NextPart_000_0024_01C6FA1A.50D57D20 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I think having understood the main concepts of RFCOMM connections (DLC, DLCI ...) however I really wonder about multi processing (globally and in BlueZ specifically) - If I want to write a service (published in the SDP) for example on channel 9, can I write a forking server (forking at each accept so it can accept a new incoming connection from another remote device while the first connection is being managed ?) We assume we have only one bdaddr (bluetooth adaptor) in local I suppose it could lead to 2 concurrent connection tuples like these = ones : ( (local_bdaddr, channel 9) - (remote1_addr, channel9) ) ( (local_bdaddr, channel 9) - (remote2_addr, channel9) ) Is it possible ? Without any conflicts ? I know on the local service we would have the same DLCI for both sockets. In TCP it would be possible with REUSEADDR, would it be the same here ? - Now taking a reverse problem, let's assume I have a client application that will "push" content to mobile phones, on channel 9. Can I run concurrent pushers on my computer ? Concurrent tuples would look like the same as formerly, except that the server / client roles are reversed here. Thanks a lot for helping me, believe I have searched a lot before asking ! Oli ------=_NextPart_000_0024_01C6FA1A.50D57D20 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
 
I think having understood the main = concepts of=20 RFCOMM
connections (DLC, DLCI ...) however I = really wonder=20 about
multi processing (globally and in BlueZ = specifically)
 
- If I want to write a service = (published in=20 the SDP) for example
on channel 9, can I write a forking = server (forking=20 at each accept
so it can accept a new incoming = connection from=20 another
remote device while the first = connection is being=20 managed ?)
We assume we have only one bdaddr = (bluetooth=20 adaptor) in local
 
I suppose it could lead to 2 concurrent = connection=20 tuples like these ones :
( (local_bdaddr, channel 9) - = (remote1_addr,=20 channel9) )
( (local_bdaddr, channel 9) - = (remote2_addr,=20 channel9) )
 
Is it possible ? Without any conflicts = ? I know on=20 the local service
we would have the same DLCI for both = sockets. In=20 TCP it would be
possible with REUSEADDR, would it be = the same here=20 ?
 
- Now taking a reverse problem, let's = assume I have=20 a client
application that will "push" content to = mobile=20 phones, on channel 9.
Can I run concurrent pushers on my = computer=20 ?
Concurrent tuples would look like the = same as=20 formerly, except
that the server / client roles are = reversed=20 here.
 
Thanks a lot for helping me, believe I = have=20 searched a lot before
asking !
 
Oli
------=_NextPart_000_0024_01C6FA1A.50D57D20-- --=======AVGMAIL-4542712308C1======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/497 - Release Date: 25/10/2006 = --=======AVGMAIL-4542712308C1======= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --=======AVGMAIL-4542712308C1======= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --=======AVGMAIL-4542712308C1=======--