// Receive method info
methodBytes = rmiServer.receiveBytes(methodBytes);
- //System.out.println("Method: " + Arrays.toString(methodBytes));
return methodBytes;
}
return retBytes;
}
-
-
- public static void main(String[] args) throws Exception {
-
- int port = 5010;
- IoTRMIObject rmiObj = new IoTRMIObject(port);
-
- Class<?>[] retCls = new Class<?>[] { int.class, String.class, int.class };
- Object[] retObj = new Object[] { 1234, "teststring", 5432 };
-
- System.out.println("Bytes: " + Arrays.toString(rmiObj.returnToBytes(retCls, retObj)));
- }
}