X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=testing%2Fweb2io%2Foptions.h;fp=testing%2Fweb2io%2Foptions.h;h=2a6d323f3f11f4e884c22fcff80b253f19ea209b;hb=64b0cd994eea9ee7e95bcd1a1d6dc06d84b83b84;hp=0000000000000000000000000000000000000000;hpb=00d35586e8c044ae64e14d1b39a03ec0371929d9;p=matches%2FMCTX3420.git diff --git a/testing/web2io/options.h b/testing/web2io/options.h new file mode 100644 index 0000000..2a6d323 --- /dev/null +++ b/testing/web2io/options.h @@ -0,0 +1,20 @@ +/** + * @file options.h + * @purpose Declaration of structure to handle options passed to program + */ + +#include + +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;