ISSUE-130: Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code

Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code

State:
CLOSED
Product:
Network Service Discovery
Raised by:
Jean-Claude Dufourd
Opened on:
2013-07-09
Description:
Dear all,

As I told you before, I have an implementation of NSD for UPnP and
Bonjour, with extensions for exposing a service and communicating
between webapp and service.
Note: In Bonjour, exposing a service means providing a JSON service
description (à la SDCP), and sending messages means exchanging JSON
messages over plain text sockets.
By doing this, I have exactly the same level of functionality in UPnP
and Bonjour. And thus, my first service developer's first strong request
was "please get rid of anything protocol specific".
He wanted to specify a service type (whether in a search or in an
advertizing request) in a way that can be transparently implemented in
UPnP or Bonjour, depending on what is implemented. This assumes that
some implementations will have UPnP and Bonjour, and others will have
only one of the two, and he wants the same webapp to simply address all
cases.

I tried to implement this by specifying only the main COMMONFRAGMENT of
a service type.
In UPnP, a service type is "upnp:urn:DOMAIN:service:COMMONFRAGMENT:1"
(note: I chose my project name for DOMAIN)
In Bonjour, a service type is "zeroconf:_COMMONFRAGMENT._tcp.local."

I first attempted to implement the search for COMMONFRAGMENT on top of
my NSD implementation.
It was not possible. I had to modify/extend the NSD implementation.

By doing this, I do not remove the difference of NSD response between
UPnP and Bonjour, but the author's code can then be made
protocol-independent.
And I think that is a "good thing".

So I propose to allow, as first argument of getNetworkServices, a plain
string that is neither starting with "upnp:" nor "zeroconf:", in which
case, the service type matching would not be done as exact string
comparison, but by testing the inclusion of the first argument value in
the service type of discovered services.
If the absence of a prefix is a problem to anyone, using a prefix of
"fragment:" would also work.

What do you think ?
Best regards
JC
Related Actions Items:
No related actions
Related emails:
  1. [admin] Agenda - Distributed Meeting 15 May 2014 (from frederick.hirsch@nokia.com on 2014-05-12)
  2. [admin] Agenda - Distributed Meeting 27 March 2014 (from Frederick.Hirsch@nokia.com on 2014-03-27)
  3. [admin] Agenda - Distributed Meeting 20 March 2014 (from Frederick.Hirsch@nokia.com on 2014-03-19)
  4. [admin] Cancel teleconference 6 March, next call 20 March (from Frederick.Hirsch@nokia.com on 2014-03-05)
  5. Re: [admin] Agenda - Distributed Meeting 27 February 2014 (from dom@w3.org on 2014-02-27)
  6. [admin] Agenda - Distributed Meeting 27 February 2014 (from Frederick.Hirsch@nokia.com on 2014-02-26)
  7. Re: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from richt@opera.com on 2014-02-21)
  8. [admin] Agenda - Distributed Meeting 20 February 2014 (from Frederick.Hirsch@nokia.com on 2014-02-18)
  9. [admin] Agenda - Distributed Meeting 13 February 2014 (resend corrected date) (from Frederick.Hirsch@nokia.com on 2014-02-13)
  10. [admin] Agenda - Distributed Meeting 12 February 2014 (from Frederick.Hirsch@nokia.com on 2014-02-13)
  11. Re: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from jean-claude.dufourd@telecom-paristech.fr on 2014-02-06)
  12. [admin] Agenda - Distributed Meeting 6 February 2014 (from Frederick.Hirsch@nokia.com on 2014-02-05)
  13. Regrets: [admin] Agenda - Distributed Meeting 30 January 2014 (from dom@w3.org on 2014-01-29)
  14. [admin] Agenda - Distributed Meeting 30 January 2014 (from Frederick.Hirsch@nokia.com on 2014-01-28)
  15. [admin] Agenda - Distributed Meeting 16 January 2014 (from Frederick.Hirsch@nokia.com on 2014-01-15)
  16. [admin] Agenda - Distributed Meeting 9 January 2014 (from Frederick.Hirsch@nokia.com on 2014-01-08)
  17. [admin] Agenda - Distributed Meeting 12 December2013 (from Frederick.Hirsch@nokia.com on 2013-12-11)
  18. Re: [admin] Agenda - Distributed Meeting 21 November 2013 (from jean-claude.dufourd@telecom-paristech.fr on 2013-11-21)
  19. [admin] Agenda - Distributed Meeting 21 November 2013 (from Frederick.Hirsch@nokia.com on 2013-11-21)
  20. Agenda - Distributed Meeting 7 November 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-11-05)
  21. [admin] Minutes 31 Oct 2013 (updated) (from Frederick.Hirsch@nokia.com on 2013-11-04)
  22. [admin] Minutes 31 October 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-10-31)
  23. RE: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from Cathy.Chan@nokia.com on 2013-10-29)
  24. Re: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-29)
  25. RE: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from Cathy.Chan@nokia.com on 2013-10-29)
  26. Re: Agenda - Distributed Meeting 31 October 2013 (Thursday) (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-29)
  27. Re: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-29)
  28. RE: [discovery-api][ISSUE-130][ACTION-654] wildcard api (from Cathy.Chan@nokia.com on 2013-10-28)
  29. Agenda - Distributed Meeting 31 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-28)
  30. [discovery-api][ISSUE-130][ACTION-654] wildcard api (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-24)
  31. Re: Agenda - Distributed Meeting 17 October 2013 (Thursday) (from jean-claude.dufourd@telecom-paristech.fr on 2013-10-17)
  32. Re: Agenda - Distributed Meeting 17 October 2013 (Thursday) (from dom@w3.org on 2013-10-17)
  33. Agenda - Distributed Meeting 17 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-17)
  34. Agenda - Distributed Meeting 10 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-10)
  35. Draft minutes today 3 October 2013 (from Frederick.Hirsch@nokia.com on 2013-10-03)
  36. Agenda - Distributed Meeting 3 October 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-10-02)
  37. Minutes 26 Sept 2013 (from Frederick.Hirsch@nokia.com on 2013-09-26)
  38. Agenda - Distributed Meeting 26 Sept 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-09-26)
  39. Draft minutes DAP 19 Sept 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-09-19)
  40. Agenda - Distributed Meeting 19 Sept 2013 (Thursday) (from Frederick.Hirsch@nokia.com on 2013-09-18)
  41. Cancel DAP call this week, meet next Thursday 19 Sept; pls work on ISSUES and ACTIONS on mail list (from Frederick.Hirsch@nokia.com on 2013-09-10)
  42. Draft Minutes 4 Sept 2013 (from Frederick.Hirsch@nokia.com on 2013-09-04)
  43. Agenda - Distributed Meeting 4 Sept 2013 (from Frederick.Hirsch@nokia.com on 2013-09-03)
  44. Re: DAP-ISSUE-130 (from jean-claude.dufourd@telecom-paristech.fr on 2013-08-30)
  45. RE: DAP-ISSUE-130 (was: Draft Minutes 21 August 2013 teleconference) (from Cathy.Chan@nokia.com on 2013-08-29)
  46. Re: DAP-ISSUE-130 (was: Draft Minutes 21 August 2013 teleconference) (from jean-claude.dufourd@telecom-paristech.fr on 2013-08-29)
  47. RE: DAP-ISSUE-130 (was: Draft Minutes 21 August 2013 teleconference) (from Cathy.Chan@nokia.com on 2013-08-28)
  48. Agenda - Distributed Meeting 28 August 2013 (from Frederick.Hirsch@nokia.com on 2013-08-27)
  49. Re: Draft Minutes 21 August 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-08-27)
  50. Re: Draft Minutes 21 August 2013 teleconference (from jean-claude.dufourd@telecom-paristech.fr on 2013-08-22)
  51. Draft Minutes 21 August 2013 teleconference (from Frederick.Hirsch@nokia.com on 2013-08-21)
  52. Agenda - Distributed Meeting 21 August 2013 (from Frederick.Hirsch@nokia.com on 2013-08-20)
  53. Agenda - Distributed Meeting 14 August 2013 (from Frederick.Hirsch@nokia.com on 2013-08-13)
  54. Agenda - Distributed Meeting 7 August 2013 (from Frederick.Hirsch@nokia.com on 2013-08-05)
  55. [admin] Draft Minutes 24 July 2013 (from Frederick.Hirsch@nokia.com on 2013-08-05)
  56. Agenda - Distributed Meeting 24 July 2013 (corrected date) (from Frederick.Hirsch@nokia.com on 2013-07-23)
  57. Agenda - Distributed Meeting 23 July 2013 (from Frederick.Hirsch@nokia.com on 2013-07-23)
  58. Re: DAP-ISSUE-130: Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code [Network Service Discovery] (from jean-claude.dufourd@telecom-paristech.fr on 2013-07-20)
  59. Re: DAP-ISSUE-130: Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code [Network Service Discovery] (from richt@opera.com on 2013-07-20)
  60. RE: DAP-ISSUE-130: Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code [Network Service Discovery] (from Cathy.Chan@nokia.com on 2013-07-17)
  61. [admin] Cancel DAP teleconference 17 July 2013 (from Frederick.Hirsch@nokia.com on 2013-07-16)
  62. Draft minutes 10 July 2013 (from jsoref@blackberry.com on 2013-07-10)
  63. Agenda - Distributed Meeting 10 July 2013 (from Frederick.Hirsch@nokia.com on 2013-07-10)
  64. [network-discovery] Open Issues for Network Discovery (from Frederick.Hirsch@nokia.com on 2013-07-09)
  65. DAP-ISSUE-130: Enable variety of protocols (e.g. UPnP, Bonour) with protocol independent developer code [Network Service Discovery] (from sysbot+tracker@w3.org on 2013-07-09)

Related notes:

[richt]: http://lists.w3.org/Archives/Public/public-device-apis/2013Aug/att-0002/minutes-2013-07-24.html#item05

21 Aug 2013, 14:18:37

Display change log ATOM feed


Anssi Kostiainen <anssi.kostiainen@intel.com>, Reilly Grant <reillyg@google.com>, Chairs, Fuqiao Xue <xfq@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.326 2018/10/13 17:29:51 vivien Exp $