diff options
author | Johannes Schanda <schanda@itestra.de> | 2013-09-19 15:38:09 +0200 |
---|---|---|
committer | Johannes Schanda <schanda@itestra.de> | 2013-09-19 15:38:09 +0200 |
commit | e743df5daca265619111bd7b039075c939a556c3 (patch) | |
tree | ce6351823b4bed91ef2f750da75ab0f7314b5196 | |
parent | f351f3415cc5fe1bd3e70eded698274abdeb0e52 (diff) | |
download | genivi-common-api-runtime-2.1.0.tar.gz |
Tutorial fixes2.1.0
-rw-r--r-- | CommonAPI-Examples/src/helloworld-stub.cpp | 2 | ||||
-rw-r--r-- | Tutorial | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CommonAPI-Examples/src/helloworld-stub.cpp b/CommonAPI-Examples/src/helloworld-stub.cpp index 3a856f1..80e3b46 100644 --- a/CommonAPI-Examples/src/helloworld-stub.cpp +++ b/CommonAPI-Examples/src/helloworld-stub.cpp @@ -108,7 +108,7 @@ int main(int argc, char** argv) { while(true) { std::cout << "Waiting for calls... (Abort with CTRL+C)\n"; - std::this_thread::sleep_for(std::chrono::seconds(60)); + sleep(60); } return 0; @@ -259,6 +259,7 @@ Here, you will need two includes in order to access the Common API client functi ---- #include <CommonAPI/CommonAPI.h> //Defined in the Common API Runtime library #include <commonapi/examples/HelloWorldInterfaceProxy.h> //Part of the code we just generated +#include <commonapi/examples/HelloWorldLeafProxy.h> //Part of the code we just generated #include <iostream> #include <future> @@ -317,6 +318,7 @@ std::cout << "Got message: '" << helloWorldReturnMessage << "'\n"; Works about the same way as implementing the client. The includes that are required are the following: ---- #include <commonapi/examples/HelloWorldInterfaceStubDefault.h> +#include <commonapi/examples/HelloWorldLeafStubDefault.h> #include <CommonAPI/CommonAPI.h> #include <iostream> @@ -353,7 +355,7 @@ servicePublisher->registerService(helloWorldStub, commonApiAddress, factory); while(true) { std::cout << "Waiting for calls... (Abort with CTRL+C)\n"; - std::this_thread::sleep_for(std::chrono::seconds(60)); + sleep(60); } ---- |