Fixing a bug in C++ socket server-client: message length was represented just in...
[iot2.git] / iotjava / iotrmi / C++ / IoTRMICall.hpp
index a63079846b4c7797bc9a37adebfe676b227dd3d9..99dd56d805027b0467ecc42100b31930f98c7d76 100644 (file)
@@ -91,6 +91,8 @@ void* IoTRMICall::remoteCall(int objectId, int methodId, string retType, string
        methodToBytes(objectId, methodId, paramCls, paramObj, method, numParam);
        // Send bytes
        fflush(NULL);
+       cout << "Length: " << len << endl;
+       IoTRMIUtil::printBytes(method, len, false);
        rmiClient->sendBytes(method, len);
        fflush(NULL);
        // Receive return value and return it to caller