2004-11-20 09:50:09

by Steffen Larsen

[permalink] [raw]
Subject: [Bluez-devel] updating the PSM in SDP..

Hi All,

Sorry if I have posted this twice. Put last time I did not see my mail come trough the mailing list.

I have used your examples in dund.c to make a proper SDP client that can advertise my protocol (L2CAP) and PSM correctly to the sdpd daemon. All the attributes looks correctly and functions ok.
My question is now: How do I update my SDP record (more specifically the PSM attribute)?
I can't find any example or anything. Explaination or example files are appriciated! :-)

Thanks in advance..

/Steffen Larsen


2004-11-20 13:46:36

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] updating the PSM in SDP..

Hi Steffen,

> I have used your examples in dund.c to make a proper SDP client that
> can advertise my protocol (L2CAP) and PSM correctly to the sdpd
> daemon. All the attributes looks correctly and functions ok.
> My question is now: How do I update my SDP record (more specifically
> the PSM attribute)?
> I can't find any example or anything. Explaination or example files
> are appriciated! :-)

I never did this. If you change the PSM maybe it is a good idea to
delete the old one and add a new record.

The library contains a sdp_record_update() function, but I never tried
it so far.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. http://www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-12-08 07:59:19

by Steffen Larsen

[permalink] [raw]
Subject: Re: [Bluez-devel] updating the PSM in SDP..

> Hi Steffen,
>
> > > The library contains a sdp_record_update() function, but I never tried
> > > it so far.
> >
> > hmmm.. I tried this sdp_record_update() function, but I can't make it
work.
> > Anyone in here, who have tried it, where it actually worked?
>
> then send me a patch for the library that makes it working.

Surely I will.. But I have to have some spare time at first. :-)

> > Well the deletion and adding a new record of cause works fine, but it
could
> > be nicer to have a update function instead. ;-)
>
> As I said, maybe changing a PSM and keeping the record is not a good
> idea. If you change the PSM then the service is also changed, right?

Yes yes for sure.. But I wanted to change the attribute that contained the
PSM integer value, through the update function.

/Steffen



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-12-08 04:06:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] updating the PSM in SDP..

Hi Steffen,

> > The library contains a sdp_record_update() function, but I never tried
> > it so far.
>
> hmmm.. I tried this sdp_record_update() function, but I can't make it work.
> Anyone in here, who have tried it, where it actually worked?

then send me a patch for the library that makes it working.

> Well the deletion and adding a new record of cause works fine, but it could
> be nicer to have a update function instead. ;-)

As I said, maybe changing a PSM and keeping the record is not a good
idea. If you change the PSM then the service is also changed, right?

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-12-07 21:49:06

by Steffen Larsen

[permalink] [raw]
Subject: Re: [Bluez-devel] updating the PSM in SDP..

> Hi Steffen,
>
> > I have used your examples in dund.c to make a proper SDP client that
> > can advertise my protocol (L2CAP) and PSM correctly to the sdpd
> > daemon. All the attributes looks correctly and functions ok.
> > My question is now: How do I update my SDP record (more specifically
> > the PSM attribute)?
> > I can't find any example or anything. Explaination or example files
> > are appriciated! :-)
>
> I never did this. If you change the PSM maybe it is a good idea to
> delete the old one and add a new record.
>
> The library contains a sdp_record_update() function, but I never tried
> it so far.

hmmm.. I tried this sdp_record_update() function, but I can't make it work.
Anyone in here, who have tried it, where it actually worked?
Well the deletion and adding a new record of cause works fine, but it could
be nicer to have a update function instead. ;-)

/Steffen



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel