W3C home > Mailing lists > Public > public-device-apis@w3.org > November 2012

[discovery-api] what to put in service name

From: Jean-Claude Dufourd <jean-claude.dufourd@telecom-paristech.fr>
Date: Thu, 22 Nov 2012 11:42:02 +0100
Message-ID: <50AE017A.1080702@telecom-paristech.fr>
To: public-device-apis@w3.org
I am working on a platform that will have one same service running on 
all devices.
When discovering that service with the NSD API, the applications gets an 
array of NetworkService objects and want to discriminate between all of 
these.
Because this is on top of UPnP, and UPnP only has serviceID and 
serviceType, in my implementation of the NSD API, I wondered what to put 
in the service "name".
Now, I believe that the service "name" should contain the name of the 
device, so that the application can discriminate between all the 
services in the array above.
Or should I rely on looking into the hostname part of the "url" 
attribute (I would find this ugly) ?
Any hint, Rich ? What is your implementation doing ?
Should the spec be more specific about what is the "name" of the 
NetworkService object ?
Thanks
JC

-- 
JC Dufourd
Directeur d'Etudes/Professor
Groupe Multimedia/Multimedia Group
Traitement du Signal et Images/Signal and Image Processing
Telecom ParisTech, 37-39 rue Dareau, 75014 Paris, France
Tel: +33145817733 - Mob: +33677843843 - Fax: +33145817144
Received on Thursday, 22 November 2012 10:42:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 November 2012 10:42:36 GMT