Student project by David Berlin and Boris Dogadov made for the Embedded Systems Workshop course given in Tel-Aviv University on 2010 by Sivan Toledo. Visit the project website for more details: http://davidberlin.co.il/sadna/ .

Dependencies:   EthernetNetIf NTPClient_NetServices mbed HTTPServer HTTPClient CyaSSL

Committer:
sivan_toledo
Date:
Mon Apr 25 12:31:46 2011 +0000
Revision:
1:b05231650f32
Parent:
0:3e7d6f496a67

        

Who changed what in which revision?

UserRevisionLine numberNew 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 };