e16c727dcc04c0dc237fb14ce3802c6ecf5503f3
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClass_Skeleton.cpp
1 #include <iostream>
2 #include <string>
3 #include "TestClass_Skeleton.hpp"
4 #include "TestClass.hpp"
5
6 using namespace std;
7
8 int main(int argc, char *argv[])
9 {
10         TestClassInterface *tc;
11         TestClass_Skeleton *tcSkel;
12         try {
13                 int port = 5010;
14                 tc = new TestClass(3, 5.0, "7911");
15                 tcSkel = new TestClass_Skeleton(tc, port);
16         } catch(const exception&) {
17                 return EXIT_FAILURE;
18         }
19         //tcSkel->waitRequestInvokeMethod();
20
21         delete tc;
22         delete tcSkel;
23         return 0;
24 }