Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf NTPClient_NetServices mbed HTTPServer HTTPClient CyaSSL
HttpHandlerUsbBrowser.h@1:b05231650f32, 2011-04-25 (annotated)
- Committer:
- sivan_toledo
- Date:
- Mon Apr 25 12:31:46 2011 +0000
- Revision:
- 1:b05231650f32
- Parent:
- 0:3e7d6f496a67
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sivan_toledo | 0:3e7d6f496a67 | 1 | #include "HTTPServer.h" |
sivan_toledo | 0:3e7d6f496a67 | 2 | |
sivan_toledo | 1:b05231650f32 | 3 | // Http handler that provides usb-browsing functionality. |
sivan_toledo | 0:3e7d6f496a67 | 4 | class HttpHandlerUsbBrowser : public HTTPRequestHandler |
sivan_toledo | 0:3e7d6f496a67 | 5 | { |
sivan_toledo | 0:3e7d6f496a67 | 6 | public: |
sivan_toledo | 0:3e7d6f496a67 | 7 | HttpHandlerUsbBrowser(const char* rootPath, const char* path, TCPSocket* pTcpSocket); |
sivan_toledo | 0:3e7d6f496a67 | 8 | virtual ~HttpHandlerUsbBrowser(); |
sivan_toledo | 0:3e7d6f496a67 | 9 | |
sivan_toledo | 0:3e7d6f496a67 | 10 | static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTcpSocket) { return new HttpHandlerUsbBrowser(rootPath, path, pTcpSocket); } |
sivan_toledo | 0:3e7d6f496a67 | 11 | |
sivan_toledo | 0:3e7d6f496a67 | 12 | protected: |
sivan_toledo | 0:3e7d6f496a67 | 13 | |
sivan_toledo | 0:3e7d6f496a67 | 14 | virtual void doGet(); |
sivan_toledo | 0:3e7d6f496a67 | 15 | virtual void doPost(); |
sivan_toledo | 0:3e7d6f496a67 | 16 | virtual void doHead(); |
sivan_toledo | 0:3e7d6f496a67 | 17 | |
sivan_toledo | 0:3e7d6f496a67 | 18 | virtual void onReadable(); //Data has been read |
sivan_toledo | 0:3e7d6f496a67 | 19 | virtual void onWriteable(); //Data has been written & buf is free |
sivan_toledo | 0:3e7d6f496a67 | 20 | virtual void onClose(); //Connection is closing |
sivan_toledo | 0:3e7d6f496a67 | 21 | }; |