{
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
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
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,