Bug fixes + tabbing
[iotcloud.git] / version2 / src / C / CloudComm.h
index daa7989f14a7b5399c010a9a20fc77d92f28b8b3..ce7cfa07023a3832252f2633cd1973b4b35e1541 100644 (file)
 #define CloudComm_HMAC_SIZE 32
 #define HttpURLConnection_HTTP_OK 200
 
+typedef struct {
+       int fd;
+       int numBytes;
+} WebConnection;
+
 
 class CloudComm {
 private:
@@ -54,7 +59,7 @@ private:
        Array<char> *createIV(int64_t machineId, int64_t localSequenceNumber);
        Array<char> *encryptSlotAndPrependIV(Array<char> *rawData, Array<char> *ivBytes);
        Array<char> *stripIVAndDecryptSlot(Array<char> *rawData);
-       Array<Slot *> *processSlots(int fd);
+       Array<Slot *> *processSlots(WebConnection *wc);
 
 
 public:
@@ -68,7 +73,7 @@ public:
         */
        CloudComm(Table *_table,  IoTString *_baseurl, IoTString *_password, int _listeningPort);
        ~CloudComm();
-       
+
        /**
         * Inits all the security stuff
         */