Making C++ classes final
[iot2.git] / iotjava / iotrmi / C++ / IoTRMIObject.hpp
index 8e688a3b128319efce9543c6e4e283cb0bb83c6b..7d0312c9999f9c99175ee7c21699ba1a8dd0dd9e 100644 (file)
@@ -20,7 +20,7 @@
 
 using namespace std;
 
-class IoTRMIObject {
+class IoTRMIObject final {
        public:
                IoTRMIObject(int _port, bool* _bResult);
                ~IoTRMIObject();
@@ -113,7 +113,6 @@ void IoTRMIObject::sendReturnObj(void* retObj[], string type[], int numRet) {
        // Need object bytes variable
        char retObjBytes[retLen];
        returnToBytes(retObj, type, retObjBytes, numRet);
-       IoTRMIUtil::printBytes(retObjBytes, retLen, false);
        rmiServer->sendBytes(retObjBytes, retLen);
 }
 
@@ -122,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;