123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef _HTTPSERVER_APP_H_
- #define _HTTPSERVER_APP_H_
-
- #include <avr/pgmspace.h>
- #include <string.h>
- #include <LUFA/Version.h>
- #include "Config/AppConfig.h"
- #include <uip.h>
- #include <ff.h>
-
-
- enum Webserver_States_t
- {
- WEBSERVER_STATE_OpenRequestedFile,
- WEBSERVER_STATE_SendResponseHeader,
- WEBSERVER_STATE_SendData,
- WEBSERVER_STATE_Closing,
- WEBSERVER_STATE_Closed,
- };
-
-
- typedef struct
- {
- char* Extension;
- char* MIMEType;
- } MIME_Type_t;
-
-
- #define HTTP_SERVER_PORT 80
-
- void HTTPServerApp_Init(void);
- void HTTPServerApp_Callback(void);
- #if defined(INCLUDE_FROM_HTTPSERVERAPP_C)
- static void HTTPServerApp_OpenRequestedFile(void);
- static void HTTPServerApp_SendResponseHeader(void);
- static void HTTPServerApp_SendData(void);
- #endif
- #endif
|