A small memory footprint AMQP implimentation

Dependents:   iothub_client_sample_amqp remote_monitoring simplesample_amqp

Revision:
1:eab586236bfe
Parent:
0:6ae2f7bca550
Child:
5:ae49385aff34
--- a/header_detect_io.c	Fri Apr 08 12:01:10 2016 -0700
+++ b/header_detect_io.c	Sun Apr 24 16:40:31 2016 -0700
@@ -358,12 +358,31 @@
 	}
 }
 
-int headerdetectio_setoption(CONCRETE_IO_HANDLE socket_io, const char* optionName, const void* value)
+int headerdetectio_setoption(CONCRETE_IO_HANDLE header_detect_io, const char* optionName, const void* value)
 {
-    return __LINE__;
+    int result;
+
+    if (header_detect_io == NULL)
+    {
+        result = __LINE__;
+    }
+    else
+    {
+        HEADER_DETECT_IO_INSTANCE* header_detect_io_instance = (HEADER_DETECT_IO_INSTANCE*)header_detect_io;
+
+        if (header_detect_io_instance->underlying_io == NULL)
+        {
+            result = __LINE__;
+        }
+        else
+        {
+            result = xio_setoption(header_detect_io_instance->underlying_io, optionName, value);
+        }
+    }
+
+    return result;
 }
 
-
 static const IO_INTERFACE_DESCRIPTION header_detect_io_interface_description =
 {
 	headerdetectio_create,