mutex mtx;
-class IoTRMICall {
+class IoTRMICall final {
public:
IoTRMICall(int _port, const char* _address, int _rev, bool* _bResult);
~IoTRMICall();
void** getReturnObjects(char* retBytes, string retCls[], int numRet, void* retObj[]);
private:
- map<string,int> mapSign2MethodId;
IoTRMIUtil *rmiUtil;
IoTSocketClient *rmiClient;
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