Update C++ samples to work after WiFi/Ethernet adapter merge.
authorMandeep Shetty <mandeep.shetty@intel.com>
Mon, 4 May 2015 23:07:46 +0000 (16:07 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 5 May 2015 15:31:34 +0000 (15:31 +0000)
commit979c09ffd93c16d9b470a44a2a61331e44ef14dd
treec024a2e36b201c06a042340827e52e8fb6364bf6
parentb2b9c7d9e130e14c07d42f2b2f07baa90108c336
Update C++ samples to work after WiFi/Ethernet adapter merge.

The merge of ethernet and wifi includes a check in the adapter for whether
a request is going out to a multicast or unicast endpoint.
The decision for whether it is a multicast or unicast request is made on
the basis of whether the group endpoint is set or the remote endpoint.

The C stack creates a group endpoint if the connectivity type is
OC_ALL or a remote endpoint otherwise. But all connectivity types are mapped
to CA_IPV4. To ensure that a group endpoint is created for multicastm the C++
samples should make the findResource() call with OC_ALL.
The new constant is the multicast resource discovery uri

Change-Id: I8933a92a18ec920cf9b4b7dd994a6cbd82cb1c44
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/898
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/include/octypes.h
resource/examples/fridgeclient.cpp
resource/examples/garageclient.cpp
resource/examples/groupclient.cpp
resource/examples/groupserver.cpp
resource/examples/presenceclient.cpp
resource/examples/roomclient.cpp
resource/examples/simpleclient.cpp
resource/examples/simpleclientHQ.cpp
resource/examples/simpleclientserver.cpp
resource/examples/threadingsample.cpp