Vector<TransactionStatus *> * transStatusList = new Vector<TransactionStatus *>();
// Setup the 2 clients
- Table * t1 = new Table(new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"), new IoTString("reallysecret"), 321, -1);
+ IoTString *baseurl = new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/");
+ IoTString * password = new IoTString("reallysecret");
+ Table * t1 = new Table(baseurl, password, 321, -1);
t1->initTable();
printf("T1 Ready\n");
- Table * t2 = new Table(new IoTString("http://dc-6.calit2.uci.edu/test.iotcloud/"), new IoTString("reallysecret"), 351, -1);
+ Table * t2 = new Table(baseurl, password, 351, -1);
t2->update();
printf("T2 Ready\n");
+ delete baseurl; delete password;
+
// Make the Keys
printf("Setting up keys\n");
for (int i = 0; i < NUMBER_OF_TESTS; i++) {