using namespace std;
-class IoTRMIObject {
+class IoTRMIObject final {
public:
IoTRMIObject(int _port, bool* _bResult);
~IoTRMIObject();
// Need object bytes variable
char retObjBytes[retLen];
returnToBytes(retObj, type, retObjBytes, numRet);
- IoTRMIUtil::printBytes(retObjBytes, retLen, false);
rmiServer->sendBytes(retObjBytes, retLen);
}
char* IoTRMIObject::getMethodBytes() {
// Get method in bytes and update method length
- //fflush(NULL);
+ fflush(NULL);
methodBytes = rmiServer->receiveBytes(methodBytes, &methodLen);
fflush(NULL);
return methodBytes;