HttpServer Library for "mbed-os" which added a snapshot handler.

Dependents:   GR-PEACH-webcam GR-Boards_WebCamera GR-Boards_WebCamera GR-Boards_WebCamera

Fork of HttpServer_snapshot by Renesas

Revision:
6:d9e6379eefac
Parent:
4:1b6b021ee21d
Child:
9:d117d5f84994
--- a/HTTPServer.h	Sat Feb 22 05:51:59 2014 +0000
+++ b/HTTPServer.h	Fri Aug 21 02:07:48 2015 +0000
@@ -272,7 +272,8 @@
 
         t = -1;
         for (i = 0; i < THREAD_MAX; i ++) {
-            if (threads[i] == NULL || threads[i]->get_state() == Thread::WaitingAnd) {
+            if ((threads[i] == NULL)
+             || ((threads[i]->get_state() == Thread::WaitingAnd) && (*clients[i].get_address() == 0))) {
                 if (t < 0) t = i; // next empty thread
             }
         }
@@ -282,5 +283,6 @@
 #include "Handler/RPCHandler.h"
 #include "Handler/FSHandler.h"
 #include "Handler/SimpleHandler.h"
+#include "SnapshotHandler.h"
 
 #endif