Re: [Bluez-devel] Hi all !

Xavier Garreau
2004-11-26T09:16:06Z

>>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)

Regards !
Xavier Garreau