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.
Fork of SW_HTTPServer by
Diff: SW_HTTPServer.h
- Revision:
- 1:54353af0d20a
- Parent:
- 0:729320f63c5c
- Child:
- 2:a29c32190037
--- a/SW_HTTPServer.h Fri May 31 03:13:39 2013 +0000 +++ b/SW_HTTPServer.h Fri May 31 03:46:58 2013 +0000 @@ -1,4 +1,19 @@ -/// SW_HTTPServer is a simple web server using the WiFly module. + +#ifndef SW_HTTPSERVER_H +#define SW_HTTPSERVER_H +#include "mbed.h" +//#include "MODSERIAL.h" // would like to hook in mod serial for higher performance, less blocking +#include "Wifly.h" +#include "TCPSocketServer.h" +#include "TCPSocketConnection.h" + +#ifdef MODSERIAL_H +#define PC MODSERIAL +#else +#define PC Serial +#endif + +/// HTTPServer is a simple web server using the WiFly module. /// /// Partially derived from nweb /// http://www.ibm.com/developerworks/systems/library/es-nweb/sidefile1.html @@ -37,21 +52,6 @@ /// /// @author David Smart, Smartware Computing /// -#ifndef SW_HTTPSERVER_H -#define SW_HTTPSERVER_H -#include "mbed.h" -//#include "MODSERIAL.h" // would like to hook in mod serial for higher performance, less blocking -#include "Wifly.h" -#include "TCPSocketServer.h" -#include "TCPSocketConnection.h" - -#ifdef MODSERIAL_H -#define PC MODSERIAL -#else -#define PC Serial -#endif - - class HTTPServer { public: