[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-27 Thread 최우제(Uze Choi)
haler [mailto:dtha...@microsoft.com] Sent: Wednesday, July 27, 2016 11:35 AM To: Thiago Macieira Cc: ???(Uze Choi); iotivity-dev at lists.iotivity.org Subject: RE: [dev] OcResource->getHost() api gives a tricky host address in Android Interface indexes are more precise (i.e. constrained) than zone ids. Th

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-27 Thread 최우제(Uze Choi)
In-lined. -Original Message- From: Thiago Macieira [mailto:thiago.macie...@intel.com] Sent: Wednesday, July 27, 2016 12:39 AM To: ???(Uze Choi) Cc: i.mushfiq at samsung.com; iotivity-dev at lists.iotivity.org Subject: Re: [dev] OcResource->getHost() api gives a tricky host address

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-27 Thread Dave Thaler
a' > > Cc: iotivity-dev at lists.iotivity.org > Subject: RE: [dev] OcResource->getHost() api gives a tricky host address in > Android > > I'm not familiar with IPv6 zone ID concept well. > According to Dave comment, Handling interface index also looks overhead, I >

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-27 Thread Dave Thaler
el.com] > Sent: Tuesday, July 26, 2016 7:19 PM > To: Dave Thaler > Cc: ???(Uze Choi) ; iotivity-dev at lists.iotivity.org > Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in > Android > > On quarta-feira, 27 de julho de 2016 02:00:35 PDT Dave Thaler

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-27 Thread Dave Thaler
-bounces at lists.iotivity.org [mailto:iotivity-dev- > bounces at lists.iotivity.org] On Behalf Of Thiago Macieira > Sent: Tuesday, July 26, 2016 6:50 PM > To: ???(Uze Choi) > Cc: iotivity-dev at lists.iotivity.org > Subject: Re: [dev] OcResource->getHost() api gives a tricky host addres

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-26 Thread 최우제(Uze Choi)
:04 PM To: i.mushfiq at samsung.com Cc: iotivity-dev at lists.iotivity.org Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in Android 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

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-26 Thread Thiago Macieira
On quarta-feira, 27 de julho de 2016 02:00:35 PDT Dave Thaler wrote: > BTW, the ZoneID is *not* an ifindex, it is a zone id. (See RFC 4007.) > On some platforms, the zone id of a link local address might happen to be an > ifindex, but any code that blindly assumes for all OS's is inherently > brok

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-26 Thread Thiago Macieira
On quarta-feira, 27 de julho de 2016 10:12:05 PDT ???(Uze Choi) wrote: > [UZ] constructResourceObject(String host, String uri, connectivityTypeSet > ...) --> constructResourceObject( Endpoints { > addr[MAX_ADDR_STR_SIZE], ifindex...} , ...) will resolve your concern. I don't like this. This make

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-26 Thread Thiago Macieira
Em ter?a-feira, 26 de julho de 2016, ?s 22:29:26 PDT, ???(Uze Choi) escreveu: > Sorry for late question for this topic. > > Antu question is a little bit different from understanding. > IoTivity has the API to create the remote resource object with once > discovered resource information as follows

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-18 Thread Dave Thaler
, Mushfiqul Islam Antu - Original Message - Sender : Macieira, Thiago mailto:thiago.macieira at intel.com>> Date : 2016-07-18 14:10 (GMT+9) Title : Re: [dev] OcResource->getHost() api gives a tricky host address in Android The correct format for the URI is

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-18 Thread Muhammad Mushfiqul Islam
An HTML attachment was scrubbed... URL: -- next part -- A non-text attachment was scrubbed... Name: 201607181438741_Z1SFOC32.jpg Type: image/jpeg Size: 823 bytes Desc: not avail

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-18 Thread Macieira, Thiago
ious API design flaw) From: ??? [jihun...@samsung.com] Sent: Sunday, July 17, 2016 19:19 To: Antler, David A Cc: ???; ???; 'Dave Thaler'; Macieira, Thiago; ???; iotivity-dev at lists.iotivity.org Subject: RE: RE: [dev] OcResource->getHost() api gives a tricky host address in Android Hi.

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-18 Thread 하지훈
An HTML attachment was scrubbed... URL: -- next part -- A non-text attachment was scrubbed... Name: 201607181119283_EM6S04A2.jpg Type: image/jpeg Size: 823 bytes Desc: not avail

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-18 Thread Thiago Macieira
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 co

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-17 Thread Antler, David A
Macieira, Thiago ; Jihun Ha Cc: iotivity-dev at lists.iotivity.org Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in Android Hi, Uze. The 'caipserver.c' code chaged when Windows port branch merged. You'd better ask to David Antler, Not Ashok. Thank

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-16 Thread Dave Thaler
> > RFC 3542 and RFC 3493 do use ifindex, but never to refer to a zone ID > > or anything that can appear with a %. It only uses it with APIs that > > want to explicitly reference an interface. RFC 3493 uses the term > > "scope id" (e.g., > > sin6_scope_id) to refer to a zone id. > > RFC 4007 is t

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread Dave Thaler
> -Original Message- > From: Thiago Macieira [mailto:thiago.macieira at intel.com] > Sent: Friday, July 15, 2016 1:59 PM > To: Dave Thaler > Cc: ???(Uze Choi) ; iotivity-dev at lists.iotivity.org > Subject: Re: [dev] OcResource->getHost() api gives a tricky host

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread Dave Thaler
gt; Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in > Android > > On sexta-feira, 15 de julho de 2016 13:56:19 PDT ???(Uze Choi) wrote: > > I'd like to mention not standard but IoTivity API. > > Considering use case, interface information is

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread Thiago Macieira
On sexta-feira, 15 de julho de 2016 21:39:11 PDT Dave Thaler wrote: > > Indeed, for a *link* local address, the Zone ID should specify the link. > > However, the entire IPv6 API as defined by the RFCs call this "ifindex" -- > > the interface index. > > > Which API are you referring to? > RFC 687

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread Thiago Macieira
On sexta-feira, 15 de julho de 2016 18:15:04 PDT Dave Thaler wrote: > > Hi Uze, > > > > Your argument is incorrect. > > > > This information is required because of the way that IPv6 works. If your > > device has two or more interfaces, IPv6 *requires* that you specify which > > network interface

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread 최우제(Uze Choi)
-boun...@lists.iotivity.org] On Behalf Of Thiago Macieira Sent: Friday, July 15, 2016 11:55 AM To: iotivity-dev at lists.iotivity.org Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in Android On sexta-feira, 15 de julho de 2016 11:34:58 PDT ???(Uze Choi) wrote: > Let

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread 최우제(Uze Choi)
v-boun...@lists.iotivity.org] On Behalf Of ???(Uze Choi) Sent: Friday, July 15, 2016 11:27 AM To: 'Dave Thaler'; 'Thiago Macieira'; jihun.ha at samsung.com Cc: iotivity-dev at lists.iotivity.org Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in Android

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread 최우제(Uze Choi)
via iotivity-dev Sent: Friday, July 15, 2016 3:09 AM To: Thiago Macieira; iotivity-dev at lists.iotivity.org; jihun.ha at samsung.com Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in Android Correct. Per RFC 6874, the % must be escaped as in: coap://[fe80::dafe:e3f

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread Thiago Macieira
On sexta-feira, 15 de julho de 2016 13:56:19 PDT ???(Uze Choi) wrote: > I'd like to mention not standard but IoTivity API. > Considering use case, interface information is not required. > e.g) compare the resource with previously connected or check the > duplication and create resource object with

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-15 Thread MyeongGi Jeong
An HTML attachment was scrubbed... URL: -- next part -- A non-text attachment was scrubbed... Name: 201602111742151_N3WZA6X7.png Type: image/png Size: 33527 bytes Desc: not avai

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-14 Thread Thiago Macieira
On sexta-feira, 15 de julho de 2016 11:34:58 PDT ???(Uze Choi) wrote: > Let me make it clear again. > From IoTivity API perspective, not only % char but also following interface > info should be removed. e.g) coap://[fe80::dafe:e3ff:fe00:ebfa]:49593 No, that's incorrect. The % should be %25 and th

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-14 Thread Thiago Macieira
On sexta-feira, 15 de julho de 2016 11:27:30 PDT ???(Uze Choi) wrote: > This happens in the C++/C API also. > > C++: OCResource.host() > C : OCDevAddr->addr > > Ashok, Could you check it from CA layer? It's probably done by concatenating the result from inet_ntop of the socket address wi

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-14 Thread Dave Thaler
y.org] On Behalf Of Thiago Macieira > Sent: Thursday, July 14, 2016 9:06 AM > To: iotivity-dev at lists.iotivity.org; jihun.ha at samsung.com > Subject: Re: [dev] OcResource->getHost() api gives a tricky host address in > Android > > On quinta-feira, 14 de julho de 2016 1

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-14 Thread 하지훈
An HTML attachment was scrubbed... URL: -- next part -- A non-text attachment was scrubbed... Name: 201602111742151_N3WZA6X7.png Type: image/png Size: 33527 bytes Desc: not avai

[dev] OcResource->getHost() api gives a tricky host address in Android

2016-07-14 Thread Thiago Macieira
On quinta-feira, 14 de julho de 2016 15:03:22 PDT ??? wrote: > I'm trying to implement android sample application and found an unexpected > information from OcResource java object. (Upon a resource is found in a > given network, I can get a corresponding OcResource object in my Android > sample app