X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FLocalComm.cc;fp=version2%2Fsrc%2FC%2FLocalComm.cc;h=ac4c3439d94f8600e4fccdce942dfd755ce5254d;hp=9640277e0095881adc81b838427c55ee21789175;hb=151413d447b9302ee57b5d3276ef73e4b297fdc0;hpb=9b3061d1723f6ae447f58e6cc83c9854fdd104be diff --git a/version2/src/C/LocalComm.cc b/version2/src/C/LocalComm.cc index 9640277..ac4c343 100644 --- a/version2/src/C/LocalComm.cc +++ b/version2/src/C/LocalComm.cc @@ -1,4 +1,7 @@ #include "LocalComm.h" +#include "Error.h" +#include "Table.h" + Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *data) { printf("Passing Locally\n"); @@ -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); }