X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2FC%2FLocalComm.cc;h=ac4c3439d94f8600e4fccdce942dfd755ce5254d;hb=151413d447b9302ee57b5d3276ef73e4b297fdc0;hp=18ba37fa6efe64bd34cbb480c38bc910127e38c0;hpb=0a73089b732948a43f9d29fef2eee4754ecad54c;p=iotcloud.git diff --git a/version2/src/C/LocalComm.cc b/version2/src/C/LocalComm.cc index 18ba37f..ac4c343 100644 --- a/version2/src/C/LocalComm.cc +++ b/version2/src/C/LocalComm.cc @@ -1,5 +1,8 @@ #include "LocalComm.h" -Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *data) throws InterruptedException { +#include "Error.h" +#include "Table.h" + +Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *data) { printf("Passing Locally\n"); if (deviceId == t1->getMachineId()) { @@ -7,8 +10,8 @@ Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *dat } else if (deviceId == t2->getMachineId()) { // return t2.localCommInput(data); } else { - throw new Error("Cannot send to " + deviceId + " using this local comm"); + throw new Error("Cannot send to deviceId using this local comm"); } - return new char[0]; + return new Array((uint32_t)0); }