Rollback changed iotcon API. 49/98849/2
authorsegwon <segwon.han@samsung.com>
Mon, 21 Nov 2016 04:55:06 +0000 (13:55 +0900)
committersegwon <segwon.han@samsung.com>
Mon, 21 Nov 2016 05:06:21 +0000 (14:06 +0900)
Signed-off-by: segwon <segwon.han@samsung.com>
Change-Id: Ie74f259fdce135729658e426d8014ff1ab4f2357

daemon/discovery_provider/IotconDiscoveryProvider.cpp
daemon/service_provider/RemoteAppControlServiceProvider.cpp

index 4db7db7..58aebb2 100755 (executable)
@@ -352,7 +352,7 @@ int conv::IotconDiscoveryProvider::start()
                return CONV_ERROR_INVALID_OPERATION;
        }
 
-       ret = iotcon_find_resource(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_IPV4,
+       ret = iotcon_find_resource(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_IPV4_ONLY | IOTCON_CONNECTIVITY_PREFER_UDP,
                        query, __found_resource, NULL);
 
        iotcon_query_destroy(query);
index c5d7490..2c726c4 100755 (executable)
@@ -673,7 +673,7 @@ int conv::RemoteAppControlServiceProvider::startRequest(Request* requestObj)
 
        iotcon_resource_interfaces_add(resource_ifaces, IOTCON_INTERFACE_DEFAULT);
 
-       error = iotcon_remote_resource_create(svcInfo->iotconInfoObj.address.c_str(), IOTCON_CONNECTIVITY_IPV4, svcInfo->iotconInfoObj.uri.c_str(), properties, resource_types, resource_ifaces,
+       error = iotcon_remote_resource_create(svcInfo->iotconInfoObj.address.c_str(), IOTCON_CONNECTIVITY_IPV4_ONLY, svcInfo->iotconInfoObj.uri.c_str(), properties, resource_types, resource_ifaces,
                        &(svcInfo->iotconInfoObj.iotconResourceHandle));
 
        _D("remote resource created : %s, %s", svcInfo->iotconInfoObj.address.c_str(), svcInfo->iotconInfoObj.uri.c_str());