X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/15c408ab8635fe45226abc2c55c9bebfe1ccb6c8..d26a9ed5fd6fc60a0dfa61d04f5ae2bd7163a85d:/Projects/Webserver/Lib/WebserverApp.h?ds=sidebyside diff --git a/Projects/Webserver/Lib/WebserverApp.h b/Projects/Webserver/Lib/WebserverApp.h index 4d1d76cc9..c788bdbeb 100644 --- a/Projects/Webserver/Lib/WebserverApp.h +++ b/Projects/Webserver/Lib/WebserverApp.h @@ -43,6 +43,19 @@ #include #include + + /* Enums: */ + /** States for each HTTP connection to the webserver. */ + enum Webserver_States_t + { + WEBSERVER_STATE_SendHeaders, /**< Currently sending HTTP headers to the client */ + WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */ + WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */ + }; + + /* Macros: */ + /** TCP listen port for incomming HTTP traffic */ + #define HTTP_SERVER_PORT 80 /* Function Prototypes: */ void WebserverApp_Init(void);