Fixing second bug (C++ skeleton cannot connect to Java's callback socket server)...
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClass_Stub.cpp
index 207eb8b2654ed7866ce789e3b2fa3a0d1c378037..a12c3608cf8689b27c4d07e25c7a98bc108f0cf8 100644 (file)
@@ -25,7 +25,7 @@ int main(int argc, char *argv[])
        cout << "Return value: " << tcStub->getDouble(12345.678) << endl;
        cout << "Return value: " << tcStub->getBoolean(true) << endl;
        cout << "Return value: " << tcStub->getChar('c') << endl;
-/*     cout << "==== ARRAY ====" << endl;
+       cout << "==== ARRAY ====" << endl;
        vector<char> in1;
        in1.push_back(68);
        in1.push_back(69);
@@ -128,7 +128,7 @@ int main(int argc, char *argv[])
                cout << "Name: " << st.name << endl;
                cout << "Value:" << st.value << endl;
                cout << "Year" << st.year << endl;
-       }*/
+       }
        cout << "==== CALLBACK ====" << endl;
        CallBackInterface *cbSingle = new CallBack(2354);
        tcStub->registerCallback(cbSingle);
@@ -142,9 +142,9 @@ int main(int argc, char *argv[])
        cb.push_back(cb3);
        tcStub->registerCallbackArray(cb);
        cout << "Return value from callback: " << tcStub->callBack() << endl;
-       CallBackInterface *cb4 = new CallBack(23);
-       CallBackInterface *cb5 = new CallBack(33);
-       CallBackInterface *cb6 = new CallBack(43);
+       CallBackInterface *cb4 = new CallBack(53);
+       CallBackInterface *cb5 = new CallBack(63);
+       CallBackInterface *cb6 = new CallBack(73);
        vector<CallBackInterface*> cblist;
        cblist.push_back(cb4);
        cblist.push_back(cb5);