Adding object ID and tons of minor adjustments for callback support
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClass_Stub.cpp
index cfb7aa759dcc8aafd80faad7a18e45127e782a1a..12f47b345254fea1697882124c74694b3e5ef8a8 100644 (file)
@@ -11,8 +11,11 @@ int main(int argc, char *argv[])
        const char* address = "localhost";
        int rev = 0;
        bool bResult = false;
+       vector<int> ports;
+       ports.push_back(12345);
+       //ports.push_back(13234);
 
-       TestClassInterface *tcStub = new TestClass_Stub(port, address, rev, &bResult);
+       TestClassInterface *tcStub = new TestClass_Stub(port, address, rev, &bResult, ports);
        cout << "Return value: " << tcStub->setAndGetA(123) << endl;
        cout << "Return value: " << tcStub->setACAndGetA("string", 123) << endl;
        vector<string> input;