Fixing second bug (C++ skeleton cannot connect to Java's callback socket server)...
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClass_Debug.cpp
1 #include <iostream>
2 #include <string>
3 #include "TestClassComplete_Stub.hpp"
4 #include "CallBack.hpp"
5 #include "IoTRMICall.hpp"
6
7 using namespace std;
8
9 int main(int argc, char *argv[])
10 {
11
12         int _port = 50044;
13         const char* _address = "localhost";
14         //const char* address = "128.195.136.170";      // dc-9.calit2.uci.edu
15         int _rev = 0;
16         bool bResult = false;
17
18         IoTRMICall *rmiCall = new IoTRMICall(_port, _address, _rev, &bResult);
19         cout << "Successfully connecting!" << endl << endl;
20         delete rmiCall;
21         
22         return 0;
23 }