Cleaning up drivers/Cpp, Cpp/Lifxtest, virtuals, and iotrmi/C++ (revisiting the C...
[iot2.git] / iotjava / iotrmi / C++ / IoTRMICommClient.hpp
index 77804cdda37afa1b2e2dc198e607262cc9214ac4..a08bb043a2f2c4e6f42cf826596723ff904c3844 100644 (file)
@@ -30,8 +30,6 @@ class IoTRMICommClient final : public IoTRMIComm {
                void                            sendReturnObj(void* retObj, string type, char* methodBytes);
                void                            sendReturnObj(void* retObj[], string type[], int numRet, char* methodBytes);
                void                            remoteCall(int objectId, int methodId, string paramCls[], void* paramObj[], int numParam);
-               //void                          waitForPackets();
-               //void                          waitForPackets(IoTRMICommClient* rmiComm);
 
        private:
                IoTSocketClient         *rmiClientSend;
@@ -49,7 +47,6 @@ IoTRMICommClient::IoTRMICommClient(int _portSend, int _portRecv, const char* _ad
        rmiClientSend = new IoTSocketClient(_portRecv, _address, _rev, _bResult);
        thread th1 (&IoTRMICommClient::waitForPackets, this, this);
        th1.detach();
-
 }
 
 
@@ -77,8 +74,6 @@ void IoTRMICommClient::waitForPackets(IoTRMICommClient* rmiComm) {
                packetBytes = rmiClientRecv->receiveBytes(packetBytes, &packetLen);
                fflush(NULL);
                if (packetBytes != NULL) { // If there is method bytes
-                       //IoTRMIUtil::printBytes(packetBytes, packetLen, false);
-                       //packetBytesPtr = &packetBytes;
                        int packetType = getPacketType(packetBytes);
                        if (packetType == IoTRMIUtil::METHOD_TYPE) {
                                rmiComm->methodQueue.enqueue(packetBytes, packetLen);