Making C++ classes final
[iot2.git] / iotjava / iotrmi / C++ / IoTRMIObject.hpp
index f7b964211adac08647f47dc63bde67beaea94528..7d0312c9999f9c99175ee7c21699ba1a8dd0dd9e 100644 (file)
@@ -20,7 +20,7 @@
 
 using namespace std;
 
-class IoTRMIObject {
+class IoTRMIObject final {
        public:
                IoTRMIObject(int _port, bool* _bResult);
                ~IoTRMIObject();
@@ -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;