Re: [Bluez-devel] Hi all !

Stephen Crane
2004-11-26T11:48:54Z

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

Hi Xavier,

On Fri, 2004-11-26 at 10:16 +0100, Xavier Garreau wrote:
> >>I never used sdp api, did any of you wrote some white paper about
> >>bluetooth programming involving sdp (i found
> >>http://www.holtmann.org/papers/bluetooth/wtc2003_slides.pdf but it's not
> >>dealing with sdp)
> >
> > the programs dund and pand show you how to advertise a SDP record.
>
> Thank you very much Marcel, this was a useful answer, as usual !
>
> I just have another (amybe silly) question ...
>
> In bluez/pan/pand/sdp.c
> function bnep_sdp_register
>
> if sdp_record_register is succesful, the sdp_session is not closed
> whereas it is evrywhere else (when something fails).
>
> Does it means that sdp_record_register closes the sdp_session when it is
> successful ? That would mean we need to di sdp_connect foreach record we
> have to add (I know, we usually only have only one to do at a time, but
> that seems "strange" to me)

I think this is a bug. The session should always be explicitly closed.
Send in a patch :-)

> Regards !
> Xavier Garreau

Steve
--
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
steve.crane@rococosoft.com +353-1-6601315 (ext 209)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]