From: rtrimana Date: Thu, 22 Mar 2018 18:25:38 +0000 (-0700) Subject: Removing printing statements from C++ RMI library - this will cause SO files to get... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e9a65a3fa878d7451ceb4f5a2cb1bc9ee846e035;p=iot2.git Removing printing statements from C++ RMI library - this will cause SO files to get killed at runtime. --- diff --git a/iotjava/iotrmi/C++/IoTRMICommServer.hpp b/iotjava/iotrmi/C++/IoTRMICommServer.hpp index 85520da..070b95a 100644 --- a/iotjava/iotrmi/C++/IoTRMICommServer.hpp +++ b/iotjava/iotrmi/C++/IoTRMICommServer.hpp @@ -71,17 +71,17 @@ IoTRMICommServer::~IoTRMICommServer() { void IoTRMICommServer::waitForConnectionOnServerRecv() { - cout << "Wait on connection ServerRecv!" << endl; + //cout << "Wait on connection ServerRecv!" << endl; rmiServerRecv->connect(); - cout << "Connected on connection ServerRecv!" << endl; + //cout << "Connected on connection ServerRecv!" << endl; } void IoTRMICommServer::waitForConnectionOnServerSend() { - cout << "Wait on connection ServerSend!" << endl; + //cout << "Wait on connection ServerSend!" << endl; rmiServerSend->connect(); - cout << "Connected on connection ServerSend!" << endl; + //cout << "Connected on connection ServerSend!" << endl; } @@ -139,7 +139,7 @@ void IoTRMICommServer::sendReturnObj(void* retObj, string type, char* methodByte IoTRMIUtil::getObjectBytes(retObjBytes, retObj, type.c_str()); memcpy(retAllObjBytes + headerLen, retObjBytes, retLen); fflush(NULL); - IoTRMIUtil::printBytes(retAllObjBytes, headerLen+retLen, false); + //IoTRMIUtil::printBytes(retAllObjBytes, headerLen+retLen, false); rmiServerSend->sendBytes(retAllObjBytes, headerLen+retLen); fflush(NULL); } diff --git a/iotjava/iotrmi/C++/IoTSocket.hpp b/iotjava/iotrmi/C++/IoTSocket.hpp index 52907ba..d39eba7 100644 --- a/iotjava/iotrmi/C++/IoTSocket.hpp +++ b/iotjava/iotrmi/C++/IoTSocket.hpp @@ -109,7 +109,7 @@ bool IoTSocket::sendBytes(char* pVals, int iLen) { return false; } - IoTRMIUtil::printBytes(size, 4, false); + //IoTRMIUtil::printBytes(size, 4, false); if (send(m_iSock, (char *) pVals, iLen, 0) == -1) { perror("IoTSocket: Send bytes error!");