Re: [Bluez-devel] D-Bus interfaces

Fredrik Noring
2004-02-20T04:04:00Z

Phil,

tor 2004-02-19 klockan 17.48 skrev Phil Blundell:
> I don't think this is really an issue: text-based tools are probably
> going to be using dbus-send, which can take care of converting to
> binary representation from some convenient textual format. Or, for
> languages which have their own D-BUS bindings, it would be handled at
> that level. So we may as well use the D-BUS type system, rather than
> manually converting everything to and from text strings.

This would require applications to convert Bluetooth addresses to/from
an artificial byte array representation which in most cases doesn't have
any meaning nor usefulness for the applications anyway. This is not only
unneeded work, it's also harmful because it restricts the address format
at the application layer instead of the at proper protocol layer.

Consider the same address issue with ipv4: It's better for high-level
applications to use text addresses (e.g. "127.0.0.1") instead of four
byte arrays. It's not only more convenient, it also works when the
address format is extended with ipv6.

Fredrik

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!