projects
/
iot2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d6dfb71
)
Making sure that C++ RMI test works
author
rtrimana
<rtrimana@uci.edu>
Mon, 1 May 2017 15:50:15 +0000
(08:50 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Mon, 1 May 2017 15:50:15 +0000
(08:50 -0700)
iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp
patch
|
blob
|
history
diff --git
a/iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp
b/iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp
index 96827a2450efe4808d6df2f8449a9e424348a60e..d8f7b5832730a72c14b54651128c5ffe96c2e8a8 100644
(file)
--- a/
iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp
+++ b/
iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp
@@
-121,8
+121,8
@@
int main(int argc, char *argv[])
int portRecv = 6000;
const char* address = "localhost";
//const char* address = "192.168.2.191"; // RPi2
int portRecv = 6000;
const char* address = "localhost";
//const char* address = "192.168.2.191"; // RPi2
-
const char* skeletonAddress = "128.195.136.163";
// dc-2.calit2.uci.edu
-
//
const char* skeletonAddress = "128.195.204.132";
+
//const char* skeletonAddress = "128.195.136.163";
// dc-2.calit2.uci.edu
+ const char* skeletonAddress = "128.195.204.132";
const char* callbackAddress = "128.195.204.132"; // dw-2.eecs.uci.edu (this machine)
//const char* skeletonAddress = "192.168.2.108"; // RPi1
//const char* callbackAddress = "192.168.2.191"; // RPi2
const char* callbackAddress = "128.195.204.132"; // dw-2.eecs.uci.edu (this machine)
//const char* skeletonAddress = "192.168.2.108"; // RPi1
//const char* callbackAddress = "192.168.2.191"; // RPi2
@@
-140,9
+140,9
@@
int main(int argc, char *argv[])
in.push_back(68);
vector<char> result = tcStub->getByteArray(in);
cout << "Test print: " << in[0] << endl;
in.push_back(68);
vector<char> result = tcStub->getByteArray(in);
cout << "Test print: " << in[0] << endl;
-/*
-
//
cout << "Getting return value from getShort(): " << tcStub->getShort(1234) << endl;
-
//cout << "Getting return value from getShort(): " << tcStub->getShort(4321) << endl;
+
+
cout << "Getting return value from getShort(): " << tcStub->getShort(1234) << endl;
+
/*
//cout << "Getting return value from getShort(): " << tcStub->getShort(4321) << endl;
//cout << "Getting return value from getShort(): " << tcStub->getShort(5678) << endl;
cout << "==== CALLBACK ====" << endl;
CallBackInterface *cbSingle = new CallBack(2354);
//cout << "Getting return value from getShort(): " << tcStub->getShort(5678) << endl;
cout << "==== CALLBACK ====" << endl;
CallBackInterface *cbSingle = new CallBack(2354);