From: hyuna0213.jo Date: Tue, 25 Oct 2016 10:59:33 +0000 (+0900) Subject: Remove not required OCStopMulticastServer() function call in RD X-Git-Tag: 1.3.0~1054^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d9a68298ac8c2ee4fb4f9fee544010c357b8105;p=platform%2Fupstream%2Fiotivity.git Remove not required OCStopMulticastServer() function call in RD 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/13645 Tested-by: jenkins-iotivity Reviewed-by: Jihun Ha Reviewed-by: Uze Choi Reviewed-by: Jaehong Jo Reviewed-by: Habib Virji --- diff --git a/resource/csdk/resource-directory/src/rd_client.c b/resource/csdk/resource-directory/src/rd_client.c index 9997bde..c63b749 100644 --- a/resource/csdk/resource-directory/src/rd_client.c +++ b/resource/csdk/resource-directory/src/rd_client.c @@ -194,14 +194,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); }