Removing printing statements from C++ RMI library - this will cause SO files to get...
authorrtrimana <rtrimana@uci.edu>
Thu, 22 Mar 2018 18:25:38 +0000 (11:25 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 22 Mar 2018 18:25:38 +0000 (11:25 -0700)
iotjava/iotrmi/C++/IoTRMICommServer.hpp
iotjava/iotrmi/C++/IoTSocket.hpp

index 85520da67851c4a4fe8c4b48495d3199494f9297..070b95af2373479b186f5c1a64578af65450aa54 100644 (file)
@@ -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);
 }
index 52907ba0f6dc095b6d5a3dfeb947d1059d012b0a..d39eba78329747ff0e99dd7ef066c08c0ba97ade 100644 (file)
@@ -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!");