Simple HTTP Server with one page index.html stored inside MBED as char vector and javascript to update a table content
Fork of HTTP_SERVER by
Diff: handlers/FileHandler.h
- Revision:
- 14:f21da0acc9f6
- Parent:
- 13:b6dd6ed0060b
diff -r b6dd6ed0060b -r f21da0acc9f6 handlers/FileHandler.h --- a/handlers/FileHandler.h Fri Mar 16 21:55:50 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/*FileHandler.h*/ -#ifndef FILE_HANDLER_H -#define FILE_HANDLER_H -#include "mbed.h" -#include "string.h" -#include <stdlib.h> - -using namespace std; -class FileHandler -{ -public: - FileHandler(); - ~FileHandler(); - FILE* open(const char*, const char*); - int close(); - virtual int getc(); - bool arrival(); - bool atEOF(); - bool hasError(); - char *getFullpath(); - char *getFilename(); - char *getSuffix(); - int getFileSize(); -private: - FILE *fp; - char *fullpath; - char *filename; - char *suffix; - char content_buffer[1024]; - int file_size; -}; -#endif \ No newline at end of file