The lib with which to make LPC1768 a simple HTTP server. This have not yet implemented. fopen() DOESN'T WORK after EthernetInterface::connect() is called as using mbed-os 5.4~. See also https://os.mbed.com/questions/80658/HardFault-occurs-when-fopen-is-called-af/ or https://github.com/ARMmbed/mbed-os/issues/6578 and https://github.com/ARMmbed/mbed-os/issues/6624
Fork of HTTP_SERVER by
Diff: HTTP_SERVER.h
- Revision:
- 9:84aca9965f9f
- Parent:
- 0:cc483bea4fe3
- Child:
- 12:c926d680f339
diff -r b013075de2e4 -r 84aca9965f9f HTTP_SERVER.h --- a/HTTP_SERVER.h Mon Nov 28 08:43:26 2016 +0000 +++ b/HTTP_SERVER.h Tue Dec 06 07:29:01 2016 +0000 @@ -12,23 +12,25 @@ enum PortNum { TCP_PORT = 80 }; - +/** HttpServer class + * + * This is the class to make a mbed a simple HTTP Server. + */ class HttpServer { public: HttpServer(); ~HttpServer(); - /** - * HTTP SERVER Initialization. - * This is called in the Constructor. - * You don't have to use but can call this if you have some reasons to init the server. + /** HTTP SERVER Initialization. + * + * This function should be called first of all. * @return result of init() as boolean. * @retval TRUE SACCESS * @retval FALSE */ bool init(); - /** - * Run the surver service while listening flag is true. + /** Run the surver service while listening flag is true. + * * @return state ending. * @retval TRUE at error end. * @retval FALSE at normal end.