Re: [Bluez-devel] Problems while sending and receiving with rfcomm sockects

Marcel Holtmann
2004-06-01T14:31:07Z

Hi Collin,

> > 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?
>
> I allways thought one should ONLY use a socket within a single thread
> at the same time. I write my programs in that way that I never call
> read() and write() on a specific socket at the "same time" also I
> only access each socket within a single thread.

this is why we have select() and poll().

> Somehting else: I need a UUID for my application - any hints on where to
> find some information/instructions?

You must create a UUID-128. There was note in the specification about
that, but I can't remember it.