A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.

Dependents:   Smart-WiFly-WebServer WattEye X10Svr SSDP_Server

Revision:
5:c9b27e718054
Parent:
4:f34642902056
Child:
6:fdce4464d92b
--- a/SW_HTTPServer.h	Tue Jun 25 16:37:06 2013 +0000
+++ b/SW_HTTPServer.h	Tue Jun 25 18:07:43 2013 +0000
@@ -396,8 +396,9 @@
     * @param str is the string to write the address into, which should be at
     *        least as large as "192.168.100.203" (16-bytes).
     * @param strSize of the str buffer must be >=16, so it will not buffer overrun.
+    * @returns true if it succeeded, false otherwise
     */
-    void GetRemoteAddr(char * str, int strSize);
+    bool GetRemoteAddr(char * str, int strSize);
 
     /** 
     * This is used to force a connection to close
@@ -457,6 +458,11 @@
     * Reset performance metrics.
     */
     void ResetPerformanceData();
+    
+    /**
+    * Get the underlying wifly object.
+    */
+    Wifly * GetWifly() { return wifly; };
 
 private:
     Wifly * wifly;
@@ -525,3 +531,4 @@
 };
 #endif //SW_HTTPSERVER_H
 
+