Fixing a bug in C++ socket server-client: message length was represented just in...
[iot2.git] / iotjava / iotrmi / C++ / IoTRMIObject.hpp
index f7b964211adac08647f47dc63bde67beaea94528..1dd3d57ba10b91c3c3a0d77d38dbd753eb9b95ea 100644 (file)
@@ -121,7 +121,7 @@ void IoTRMIObject::sendReturnObj(void* retObj[], string type[], int numRet) {
 char* IoTRMIObject::getMethodBytes() {
 
        // Get method in bytes and update method length
-       //fflush(NULL);
+       fflush(NULL);
        methodBytes = rmiServer->receiveBytes(methodBytes, &methodLen);
        fflush(NULL);
        return methodBytes;