This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: mbed/Httpd.h
- Revision:
- 17:f29e1ca90e3d
- Parent:
- 3:0a94993be1f6
- Child:
- 19:33b9ba0859ee
diff -r 5aacf74ae574 -r f29e1ca90e3d mbed/Httpd.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed/Httpd.h Fri Apr 26 05:26:34 2013 +0000 @@ -0,0 +1,25 @@ +#pragma once +//////////////////////////////////////////////////////////////////////////////// +// Httpd.h +//////////////////////////////////////////////////////////////////////////////// + +#include "NyLPC_net.h" + +namespace MiMic +{ + class HttpdConnection; + class Httpd + { + private: + struct Httpd2{ + NyLPC_TcHttpd_t super; + Httpd* _parent; + }_inst; + static void onRequestHandler(NyLPC_TcHttpdConnection_t* i_connection); + public: + Httpd(int i_port_number); + virtual ~Httpd(); + void loop(); + virtual void onRequest(HttpdConnection& i_connection)=0; + }; +} \ No newline at end of file