Changes and additional files for RMI profiling
[iot2.git] / iotjava / iotrmi / C++ / IoTRMIObject.cpp
1 #include <iostream>
2 #include <string>
3 #include "IoTRMIObject.hpp"
4
5 using namespace std;
6
7 int main(int argc, char *argv[])
8 {
9         int port = 5010;
10         bool bResult = false;
11         IoTRMIObject *ro = new IoTRMIObject(port, &bResult);
12
13         int numRet = 3;
14         string retCls[] = { "int", "string", "int" };
15         int param1 = 1234;
16         string param2 = "teststring";
17         int param3 = 5432;
18         void* retObj[] = { &param1, &param2, &param3 };
19         ro->sendReturnObj(retObj, retCls, numRet);
20         
21         return 0;
22 }