Microsoft Azure IoTHub client HTTP transport

Dependents:   iothub_client_sample_http simplesample_http temp_sensor_anomaly

This library implements the HTTP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks

Revision:
4:ce756a949fbd
Parent:
3:4e9296134ffb
--- a/iothubtransporthttp.c	Tue Sep 22 20:36:43 2015 -0700
+++ b/iothubtransporthttp.c	Tue Sep 29 17:02:00 2015 -0700
@@ -921,11 +921,9 @@
 static void reversePutListBackIn(PDLIST_ENTRY source, PDLIST_ENTRY destination)
 {
     /*this function takes a list, and inserts it in another list. When done in the context of this file, it reverses the effects of a not-able-to-send situation*/
-    PDLIST_ENTRY afterHead;
-    while ((afterHead = DList_RemoveHeadList(source)) != source)
-    {
-        DList_InsertHeadList(destination, afterHead);
-    }
+    DList_AppendTailList(destination->Flink, source);
+    DList_RemoveEntryList(source);
+    DList_InitializeListHead(source);
 }
 
 static void DoEvent(TRANSPORT_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle)