Adding object ID and tons of minor adjustments for callback support
[iot2.git] / iotjava / iotrmi / C++ / sample / CallBack_Stub.cpp
1 #include <iostream>
2 #include <string>
3 #include "CallBack_Stub.hpp"
4
5 using namespace std;
6
7 int main(int argc, char *argv[])
8 {
9
10         int port = 5010;
11         const char* address = "localhost";
12         int rev = 0;
13         bool bResult = false;
14
15         CallBackInterface *cbStub = new CallBack_Stub(port, address, rev, &bResult);
16         cout << "Return value: " << cbStub->printInt() << endl;
17         cbStub->setInt(123);
18         cout << "Return value: " << cbStub->printInt() << endl;
19
20         delete cbStub;
21
22         return 0;
23 }