Investigate software for interfacing with hardware via HTTP requests
[matches/MCTX3420.git] / testing / web2io / options.h
diff --git a/testing/web2io/options.h b/testing/web2io/options.h
new file mode 100644 (file)
index 0000000..2a6d323
--- /dev/null
@@ -0,0 +1,20 @@
+/**
+ * @file options.h
+ * @purpose Declaration of structure to handle options passed to program
+ */
+
+#include <stdint.h>
+
+typedef struct
+{
+       const char * program; //name of program
+       uint8_t verbosity; // verbosity level
+       int port; // port to use for webserver
+       int bound_sfd; // socket webserver has bound to
+       int sfd; // socket connected to client
+       
+} Options;
+
+
+
+extern Options options;

UCC git Repository :: git.ucc.asn.au