ported HTTP-Server with W5500 Ethernet Shield

Dependencies:   W5500Interface mbed-rpc mbed

Fork of HTTP-Server by F B

Committer:
embeddist
Date:
Tue Apr 28 13:54:18 2015 +0000
Revision:
11:ac3569846176
Parent:
0:9e4bcb10b3e3
ported HTTP-Server with W5500 Ethernet Shield

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feb11 0:9e4bcb10b3e3 1 #ifndef FORMATTER
feb11 0:9e4bcb10b3e3 2 #define FORMATTER
feb11 0:9e4bcb10b3e3 3
feb11 0:9e4bcb10b3e3 4 class Formatter
feb11 0:9e4bcb10b3e3 5 {
feb11 0:9e4bcb10b3e3 6 public :
feb11 0:9e4bcb10b3e3 7
feb11 0:9e4bcb10b3e3 8 Formatter(int nbChunk = 1);
feb11 0:9e4bcb10b3e3 9
feb11 0:9e4bcb10b3e3 10 char* get_page(char *reply);
feb11 0:9e4bcb10b3e3 11
feb11 0:9e4bcb10b3e3 12 protected :
feb11 0:9e4bcb10b3e3 13
feb11 0:9e4bcb10b3e3 14 virtual void get_chunk(const int c, char *reply);
feb11 0:9e4bcb10b3e3 15
feb11 0:9e4bcb10b3e3 16 private :
feb11 0:9e4bcb10b3e3 17
feb11 0:9e4bcb10b3e3 18 int currentChunk;
feb11 0:9e4bcb10b3e3 19 int nbChunk;
feb11 0:9e4bcb10b3e3 20 };
feb11 0:9e4bcb10b3e3 21
feb11 0:9e4bcb10b3e3 22 class SimpleHTMLFormatter : public Formatter
feb11 0:9e4bcb10b3e3 23 {
feb11 0:9e4bcb10b3e3 24 public :
feb11 0:9e4bcb10b3e3 25
feb11 0:9e4bcb10b3e3 26 SimpleHTMLFormatter();
feb11 0:9e4bcb10b3e3 27
feb11 0:9e4bcb10b3e3 28 protected :
feb11 0:9e4bcb10b3e3 29
feb11 0:9e4bcb10b3e3 30 virtual void get_chunk(const int c, char *reply);
feb11 0:9e4bcb10b3e3 31
feb11 0:9e4bcb10b3e3 32 };
feb11 0:9e4bcb10b3e3 33
feb11 0:9e4bcb10b3e3 34 class InteractiveHTMLFormatter : public Formatter
feb11 0:9e4bcb10b3e3 35 {
feb11 0:9e4bcb10b3e3 36 public :
feb11 0:9e4bcb10b3e3 37
feb11 0:9e4bcb10b3e3 38 InteractiveHTMLFormatter();
feb11 0:9e4bcb10b3e3 39
feb11 0:9e4bcb10b3e3 40 protected :
feb11 0:9e4bcb10b3e3 41
feb11 0:9e4bcb10b3e3 42 virtual void get_chunk(const int c, char *reply);
embeddist 11:ac3569846176 43
feb11 0:9e4bcb10b3e3 44 };
feb11 0:9e4bcb10b3e3 45
feb11 0:9e4bcb10b3e3 46
feb11 0:9e4bcb10b3e3 47 #endif
feb11 0:9e4bcb10b3e3 48