X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fexamples%2Fsimpleclient.cpp;h=5667b07c0ba63d6010b090ec7ec7f0a0e0ed3349;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=924e88c756d72084f4c0a5b8c3ad9ea52ea1abb3;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/examples/simpleclient.cpp b/resource/examples/simpleclient.cpp index 924e88c..5667b07 100644 --- a/resource/examples/simpleclient.cpp +++ b/resource/examples/simpleclient.cpp @@ -476,7 +476,7 @@ static FILE* client_open(const char* /*path*/, const char *mode) int main(int argc, char* argv[]) { std::ostringstream requestURI; - OCPersistentStorage ps {client_open, fread, fwrite, fclose, unlink }; + OCPersistentStorage ps {client_open, fread, fwrite, fclose, unlink, NULL, NULL}; try { printUsage(); @@ -509,8 +509,9 @@ int main(int argc, char* argv[]) { PlatformConfig cfg { OC::ServiceType::InProc, OC::ModeType::Both, - "0.0.0.0", - 0, + OCConnectivityType::CT_ADAPTER_IP, + OCConnectivityType::CT_ADAPTER_IP, + (OCTransportAdapter)(OCTransportAdapter::OC_ADAPTER_IP|OCTransportAdapter::OC_ADAPTER_TCP), OC::QualityOfService::HighQos, &ps };