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.cpp
- Revision:
- 25:f7d6df7a700a
- Parent:
- 24:062431453abb
- Child:
- 26:38102ef2b132
diff -r 062431453abb -r f7d6df7a700a SW_HTTPServer.cpp --- a/SW_HTTPServer.cpp Thu Oct 10 18:29:12 2013 +0000 +++ b/SW_HTTPServer.cpp Thu Oct 10 18:42:27 2013 +0000 @@ -51,7 +51,7 @@ // search the web for embedded system malloc alternates. static void * MyMalloc(int x, int y) { - std::printf("[%04d] malloc(%d)\r\n", y, x); + std::printf("[INF HTTP%4d] malloc(%d)\r\n", y, x); return malloc(x); } static char toP(void * x) @@ -64,7 +64,7 @@ } #define mymalloc(x) MyMalloc(x, __LINE__) #define myfree(x) \ - pc->printf("[%4d] free(%02x %02x %02x %02x %02x ... %c%c%c%c%c)\r\n", __LINE__, \ + pc->printf("[INF HTTP%4d] free(%02x %02x %02x %02x %02x ... %c%c%c%c%c)\r\n", __LINE__, \ *x, *(x+1), *(x+2), *(x+3), *(x+4), \ toP(x), toP(x+1), toP(x+2), toP(x+3), toP(x+4) ); \ free(x); @@ -762,4 +762,3 @@ return res; } #endif -