This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: cpp/Httpd.h
- Revision:
- 3:0a94993be1f6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpp/Httpd.h Thu Apr 04 08:22:57 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