public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Kasper Revsbech <mail@krevsbech.dk>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: RFCOMM server multiple client connections
Date: Thu, 24 Jul 2008 16:13:05 +0200	[thread overview]
Message-ID: <1216908785.7820.13.camel@californication> (raw)
In-Reply-To: <488870AF.3080601@krevsbech.dk>

Hi Kasper,

> I am trying do do a simple client server setup  with bluez.
> I can manage to have a client and a server on rfcomm sockets where the 
> server listen on a socket and accept a connection from the client by 
> connect. But then if I set the server back to accepting without putting 
> down the one client connection it doesn't accept a new connection.
> When I read thought the documentation I can find on Bluez and Bluetooth 
> in general it seems like it should be possible to multiplex serveal 
> virtual rfcomm connections  on one actual connection. But however I 
> really can get it working and can't find any code where they do 
> something similar.

are the clients running on multiple adapters. If they run on the same
adapter, it won't work. RFCOMM is not a layer that assign dynamic
channels numbers to each connection (like L2CAP does) and thus once a
RFCOMM channel is in use (the pair is bdaddr:channel) then you can
connect to it twice.

Regards

Marcel



  reply	other threads:[~2008-07-24 14:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 12:08 RFCOMM server multiple client connections Kasper Revsbech
2008-07-24 14:13 ` Marcel Holtmann [this message]
2008-07-25  7:03   ` Kasper Revsbech
2008-07-25 12:31     ` Marcel Holtmann

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=1216908785.7820.13.camel@californication \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=mail@krevsbech.dk \
    /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