Fixing second bug (C++ skeleton cannot connect to Java's callback socket server)...
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClass_Debug.cpp
diff --git a/iotjava/iotrmi/C++/basics/TestClass_Debug.cpp b/iotjava/iotrmi/C++/basics/TestClass_Debug.cpp
new file mode 100644 (file)
index 0000000..8771d55
--- /dev/null
@@ -0,0 +1,23 @@
+#include <iostream>
+#include <string>
+#include "TestClassComplete_Stub.hpp"
+#include "CallBack.hpp"
+#include "IoTRMICall.hpp"
+
+using namespace std;
+
+int main(int argc, char *argv[])
+{
+
+       int _port = 50044;
+       const char* _address = "localhost";
+       //const char* address = "128.195.136.170";      // dc-9.calit2.uci.edu
+       int _rev = 0;
+       bool bResult = false;
+
+       IoTRMICall *rmiCall = new IoTRMICall(_port, _address, _rev, &bResult);
+       cout << "Successfully connecting!" << endl << endl;
+       delete rmiCall;
+       
+       return 0;
+}