X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iot2.git;a=blobdiff_plain;f=iotjava%2Fiotrmi%2FC%2B%2B%2Fbasics%2FTestClassComplete_Stub.cpp;h=96827a2450efe4808d6df2f8449a9e424348a60e;hp=be174b80c17a11ce33add0d8e97d96b76517a06a;hb=302042de817d92a659f4e3015ec56cd4e382ee44;hpb=429e331637e1c6b709cea16e9664bcda7427b58f;ds=sidebyside diff --git a/iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp b/iotjava/iotrmi/C++/basics/TestClassComplete_Stub.cpp index be174b8..96827a2 100644 --- 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 - //const char* skeletonAddress = "128.195.136.170"; // dc-9.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 @@ -135,6 +135,12 @@ int main(int argc, char *argv[]) //ports.push_back(43212); TestClassComplete *tcStub = new TestClassComplete_Stub(portSend, portRecv, skeletonAddress, rev, &bResult); + vector in; + in.push_back(68); + in.push_back(68); + vector 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(5678) << endl; @@ -150,7 +156,7 @@ int main(int argc, char *argv[]) //cout << "Return value from callback: " << tcStub->callBack() << endl; // TODO: we need this while loop at the end to keep the threads running - while(true); + while(true);*/ return 0; }