X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fexamples%2Fthreadingsample.cpp;h=b43d41858880727044e5ef081224fdc9f9f82dd5;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=e1332c82c5632964b2c4eeb76be381faf8e062d5;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/examples/threadingsample.cpp b/resource/examples/threadingsample.cpp index e1332c8..b43d418 100644 --- a/resource/examples/threadingsample.cpp +++ b/resource/examples/threadingsample.cpp @@ -279,7 +279,7 @@ void client1() { std::cout << "in client1\n"; std::cout<<"result1:" << OCPlatform::findResource("", requestURI.str(), - OC_ALL, foundResource1)<< std::endl; + CT_DEFAULT, foundResource1)<< std::endl; // A condition variable will free the mutex it is given, then do a non- // intensive block until 'notify' is called on it. In this case, since we @@ -296,7 +296,7 @@ void client2() std::cout << "in client2\n"; std::cout<<"result2:" << OCPlatform::findResource("", requestURI.str(), - OC_ALL, foundResource2)<< std::endl; + CT_DEFAULT, foundResource2)<< std::endl; // A condition variable will free the mutex it is given, then do a non- // intensive block until 'notify' is called on it. In this case, since we @@ -330,7 +330,7 @@ void server() int main(int argc, char* argv[]) { - requestURI << OC_MULTICAST_DISCOVERY_URI << "?rt=core.foo"; + requestURI << OC_RSRVD_WELL_KNOWN_URI << "?rt=core.foo"; PlatformConfig cfg { OC::ServiceType::InProc,