Be doubly-certain that the incomming CDC class driver's endpoint/pipe is flushed...
[pub/USBasp.git] / Projects / Webserver / Lib / WebserverApp.h
index 4d1d76c..c788bdb 100644 (file)
                #include <LUFA/Version.h>\r
                \r
                #include <uip.h>\r
+               \r
+       /* Enums: */\r
+               /** States for each HTTP connection to the webserver. */\r
+               enum Webserver_States_t\r
+               {\r
+                       WEBSERVER_STATE_SendHeaders, /**< Currently sending HTTP headers to the client */\r
+                       WEBSERVER_STATE_SendData,    /**< Currently sending HTTP page data to the client */\r
+                       WEBSERVER_STATE_Closed,      /**< Connection closed after all data sent */\r
+               };\r
+       \r
+       /* Macros: */\r
+               /** TCP listen port for incomming HTTP traffic */\r
+               #define HTTP_SERVER_PORT  80\r
 \r
        /* Function Prototypes: */\r
                void WebserverApp_Init(void);\r