On segunda-feira, 18 de julho de 2016 05:38:40 PDT Muhammad Mushfiqul Islam 
wrote:
> Dear Mr. Thiago,
> I am not any designer nor developer of iotivity, but as a user, as far as I
> know, that const std::string& host argument is not host name, rather it is
> ip & port information of the host in coap://IP:Port format([IP]:Port for
> IPv6).  The const std::string& uri is the relative uri, which should be
> used after IP & Port. These information are necessary to create the
> resource object, as Iotivity uses the resource object to send
> get/put/post/delete requests to a resource.

And, like I said, that makes it a design flaw and current defect in the API.

The current host's addresses (plural!) and the port numbers that IoTivity used 
are already known to IoTivity. Repeating them in the registration is 
unnecessary and either redudant or just plain wrong.

Users never type host addresses. Ever.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to