summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CommonAPI-Examples/src/helloworld-stub.cpp2
-rw-r--r--Tutorial4
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;
diff --git a/Tutorial b/Tutorial
index c6dee22..9791a7f 100644
--- a/Tutorial
+++ b/Tutorial
@@ -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);
}
----