Henry Leinen / WiFlyHTTPServer

Dependents:   WiFlyHTTPServerSample MultiThreadingHTTPServer

Revision:
13:93ff322420b0
Parent:
9:c2a1462b9b71
--- a/Handler/RpcHandler.cpp	Wed Jun 05 23:39:24 2013 +0000
+++ b/Handler/RpcHandler.cpp	Wed Jun 26 21:12:42 2013 +0000
@@ -4,23 +4,15 @@
 #include "mbed_rpc.h"
 
 
-#define _DEBUG 0
+#define DEBUG
+#include "debug.h"
 
-#if (_DEBUG && !defined(TARGET_LPC11U24))
-#define INFO(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#define WARN(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#define ERR(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__);
-#else
-#define INFO(x, ...)
-#define WARN(x, ...)
-#define ERR(x, ...)
-#endif
 
 RPC rpc("rpc");
 
 
-HTTPRpcRequestHandler::HTTPRpcRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg, TCPSocketConnection& Tcp)
-    : HTTPRequestHandler(Msg, Tcp)
+HTTPRpcRequestHandler::HTTPRpcRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg)
+    : HTTPRequestHandler(Msg)
 {
     m_rootPath = rootPath;
     m_localPath = localPath;