A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.
Dependents: Smart-WiFly-WebServer WattEye X10Svr SSDP_Server
Diff: SW_HTTPServer.h
- Revision:
- 16:6ebacf2946d8
- Parent:
- 14:19c5f6151319
- Child:
- 17:69ff00ce39f4
--- a/SW_HTTPServer.h Tue Aug 13 11:07:36 2013 +0000 +++ b/SW_HTTPServer.h Sun Sep 01 19:19:08 2013 +0000 @@ -321,7 +321,7 @@ bool RegisterHandler(const char * path, Handler callback); /** - * determine if the named file is a supported type (e.g. .htm, .jpg, ...) + * determine if the named file is a supported type (htm, html, jpg, etc) * * if you pass in a filename, it will attempt to extract the extension * and compare that to the list of supported file types. If it finds a @@ -367,7 +367,7 @@ void ParseParameters(char * pString); /** - * Unescape string converts a coded string "in place" into a normal string + * Unescape string converts a coded string "in place" into a normal string. * * A query string will have a number of characters replaced for communication * which includes spaces, quotes, question marks and more. Most of them @@ -404,7 +404,7 @@ bool GetRemoteAddr(char * str, int strSize); /** - * This is used to force a connection to close + * This is used to force a connection to close. * * This switches the module into command mode, performs the close, * then switches it back to data mode. So, this is a time-expensive @@ -415,7 +415,7 @@ bool close_connection(); /** - * Get the size of the largest header. + * Diagnostic to get the size of the largest header. * * This is a diagnostic function, so you can resize the allocated * buffer for your application. With proper sizing, more of the @@ -431,7 +431,7 @@ int GetMaxHeaderSize(); /** - * Get a header value, if it exists. + * Get a value from the http header, if it exists. * * @param hdr is the string to search for (e.g. "Content-Length") * @@ -525,7 +525,7 @@ * @returns the current time which may be used as the reference time * for further measurements. */ - int RecordPerformanceData(SW_PerformanceParam * param, int value); + unsigned int RecordPerformanceData(SW_PerformanceParam * param, unsigned int value); SW_PerformanceData perfData; typedef struct HANDLER {