Adaptation of the HttpServer by user yueee_yt. This version has improved handling of the HTTP headers (**NOTE**: There are limitations with this implementation and it is not fully functional. Use it only as a starting point.)
Dependents: DMSupport DMSupport DMSupport DMSupport
Fork of DM_HttpServer by
Diff: Handler/SimpleHandler.cpp
- Revision:
- 5:b8f6a11c70db
- Parent:
- 4:1b6b021ee21d
- Child:
- 6:7b3320c34654
diff -r 1b6b021ee21d -r b8f6a11c70db Handler/SimpleHandler.cpp --- a/Handler/SimpleHandler.cpp Fri Feb 21 07:10:30 2014 +0000 +++ b/Handler/SimpleHandler.cpp Sat Feb 22 05:51:59 2014 +0000 @@ -19,9 +19,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef _DEBUG_ALL #define _DEBUG_SIMPLE_HANDLER -#endif #include "SimpleHandler.h" @@ -74,7 +72,7 @@ #ifdef _DEBUG_SIMPLE_HANDLER printf("\r\n++++SimpleHandler::onWriteable() event\r\n"); #endif - close(); //Data written, we can close the connection +// close(); //Data written, we can close the connection } void SimpleHandler::onClose() //Connection is closing