Remove not required OCStopMulticastServer() function call in RD
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Tue, 25 Oct 2016 10:59:33 +0000 (19:59 +0900)
committerHabib Virji <habib.virji@samsung.com>
Thu, 27 Oct 2016 09:08:31 +0000 (09:08 +0000)
this is required but it is being moved to app layer, as it is
conflicting with the local and cloud scenarios. It would require
update to the local rd sample to call this function instead.
Also OCStopMulticastServer has to be made available to the
application developer, right now it is just a C API.

Change-Id: I7a51c29b7bc88416df81966f9d98898bc2b3ab08
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13743
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/csdk/resource-directory/src/rd_client.c

index eb2ac3b..7107649 100644 (file)
@@ -195,14 +195,6 @@ OCStackResult OCRDPublishWithDeviceId(const char *host, const unsigned char *id,
     OCRepPayloadSetPropObjectArray(rdPayload, OC_RSRVD_LINKS, linkArr, dimensions);
     OIC_LOG_PAYLOAD(DEBUG, (OCPayload *) rdPayload);
 
-    if (OC_STACK_OK == OCStopMulticastServer())
-    {
-        OIC_LOG_V(DEBUG, TAG, "Stopped receiving the multicast traffic.");
-    }
-    else
-    {
-        OIC_LOG_V(DEBUG, TAG, "Failed stopping the multicast traffic.");
-    }
     return OCDoResource(NULL, OC_REST_POST, targetUri, NULL, (OCPayload *)rdPayload,
                         connectivityType, qos, cbData, NULL, 0);
 }