From e9a65a3fa878d7451ceb4f5a2cb1bc9ee846e035 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Thu, 22 Mar 2018 11:25:38 -0700 Subject: [PATCH] Removing printing statements from C++ RMI library - this will cause SO files to get killed at runtime. --- iotjava/iotrmi/C++/IoTRMICommServer.hpp | 10 +++++----- iotjava/iotrmi/C++/IoTSocket.hpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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!"); -- 2.34.1