public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: dsas@mega.ist.utl.pt
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Problems while sending and receiving with rfcomm sockects
Date: Tue, 01 Jun 2004 14:34:27 +0200	[thread overview]
Message-ID: <1086093267.4702.20.camel@pegasus> (raw)
In-Reply-To: <1086088581.40bc65850efcf@webmail.rnl.ist.utl.pt>

Hi Didier,

> I'm writting a server-client application over bluez using rfcomm sockets. I've
> created two threads: one for sending and the other for receiving. The problem
> occurs sometimes (sporadical) and only when I'm sending and receiving data at
> the same time: The received data seems to be corrupt... Do I have to use
> mutexes or other synchronizing method? The error ocurrs more often if I execute
> more than one server at the same time.

I never used RFCOMM in a multi-threaded program. Actually I avoid to use
threads wherever possible. However sending and receiving at the same
time should work. Maybe there is a kernel bug, what version do you use?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2004-06-01 12:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 11:16 [Bluez-devel] Problems while sending and receiving with rfcomm sockects dsas
2004-06-01 12:34 ` Marcel Holtmann [this message]
2004-06-01 12:56   ` Collin R. Mulliner
2004-06-01 14:31     ` Marcel Holtmann
     [not found]   ` <1086094626.40bc7d22eab66@webmail.rnl.ist.utl.pt>
2004-06-01 14:32     ` Marcel Holtmann
     [not found] ` <1086094054.1978.26.camel@fischer>
2004-06-01 15:07   ` dsas
2004-06-01 15:16     ` Marcel Holtmann
2004-06-06 15:46     ` [Bluez-devel] " dsas
2004-06-06 15:59       ` Marcel Holtmann
2004-06-06 16:16         ` dsas
2004-06-06 16:26           ` Marcel Holtmann
2004-06-06 20:52           ` 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=1086093267.4702.20.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=dsas@mega.ist.utl.pt \
    /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