For a question in forum this is a working example, there will be the example that is not working
Fork of eth_v13 by
httpServer.h@4:a10e3d1bdb17, 2014-03-27 (annotated)
- Committer:
- hggerdd
- Date:
- Thu Mar 27 21:55:57 2014 +0000
- Revision:
- 4:a10e3d1bdb17
- Parent:
- 3:79dc3337d9da
working with wiznet w5100
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hggerdd | 3:79dc3337d9da | 1 | #ifndef HTTPSERVER_H_ |
hggerdd | 3:79dc3337d9da | 2 | #define HTTPSERVER_H_ |
hggerdd | 3:79dc3337d9da | 3 | |
hggerdd | 3:79dc3337d9da | 4 | #include "TCPSocket.h" |
hggerdd | 3:79dc3337d9da | 5 | #include "html.h" |
hggerdd | 3:79dc3337d9da | 6 | |
hggerdd | 3:79dc3337d9da | 7 | class httpServer |
hggerdd | 3:79dc3337d9da | 8 | { |
hggerdd | 3:79dc3337d9da | 9 | TCPSocket tcpSocket; |
hggerdd | 3:79dc3337d9da | 10 | int _port; |
hggerdd | 3:79dc3337d9da | 11 | Timer timeout; |
hggerdd | 3:79dc3337d9da | 12 | |
hggerdd | 3:79dc3337d9da | 13 | int counter; |
hggerdd | 3:79dc3337d9da | 14 | |
hggerdd | 3:79dc3337d9da | 15 | public: |
hggerdd | 3:79dc3337d9da | 16 | httpServer(int socket); |
hggerdd | 3:79dc3337d9da | 17 | void start(int port); |
hggerdd | 3:79dc3337d9da | 18 | void close(); |
hggerdd | 3:79dc3337d9da | 19 | void poll(); |
hggerdd | 3:79dc3337d9da | 20 | void httpApp(); |
hggerdd | 3:79dc3337d9da | 21 | }; |
hggerdd | 3:79dc3337d9da | 22 | |
hggerdd | 3:79dc3337d9da | 23 | #endif |