summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-03-21 13:31:03 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-03-21 13:31:03 +0100
commitc07b837dbad1ac176a6c18062dab9184e7080309 (patch)
tree277d5f7c06e2e71b25a9b9619917f04158b789e8 /src/Daemon
parent8f098fc3070f791302ec1f497588fab6ed409980 (diff)
downloadmad-c07b837dbad1ac176a6c18062dab9184e7080309.tar
mad-c07b837dbad1ac176a6c18062dab9184e7080309.zip
Net::Connection-Klasse zur besseren Strukturierung gekapselt
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/Backends/NetworkLogger.h5
-rw-r--r--src/Daemon/RequestHandlers/CommandRequestHandler.h2
-rw-r--r--src/Daemon/Requests/IdentifyRequest.h2
-rw-r--r--src/Daemon/Requests/LogRequest.h2
4 files changed, 5 insertions, 6 deletions
diff --git a/src/Daemon/Backends/NetworkLogger.h b/src/Daemon/Backends/NetworkLogger.h
index 8dc34b9..492fd87 100644
--- a/src/Daemon/Backends/NetworkLogger.h
+++ b/src/Daemon/Backends/NetworkLogger.h
@@ -23,7 +23,6 @@
#include <Common/Logger.h>
#include <Common/RequestManager.h>
#include <Daemon/Requests/LogRequest.h>
-#include <ctime>
namespace Mad {
namespace Daemon {
@@ -31,7 +30,7 @@ namespace Backends {
class NetworkLogger : public Common::Logger {
private:
- Net::Connection *connection;
+ Common::Connection *connection;
protected:
virtual void logMessage(Common::Logger::MessageCategory category, Common::Logger::MessageLevel level, time_t messageTimestamp, const std::string &message) {
@@ -40,7 +39,7 @@ class NetworkLogger : public Common::Logger {
}
public:
- NetworkLogger(Net::Connection *connection0) : connection(connection0) {}
+ NetworkLogger(Common::Connection *connection0) : connection(connection0) {}
};
}
diff --git a/src/Daemon/RequestHandlers/CommandRequestHandler.h b/src/Daemon/RequestHandlers/CommandRequestHandler.h
index 230a8f5..73aced0 100644
--- a/src/Daemon/RequestHandlers/CommandRequestHandler.h
+++ b/src/Daemon/RequestHandlers/CommandRequestHandler.h
@@ -35,7 +35,7 @@ class CommandRequestHandler : public Common::RequestHandler {
virtual void handlePacket(const Common::XmlPacket &packet);
public:
- CommandRequestHandler(Net::Connection *connection, uint16_t requestId)
+ CommandRequestHandler(Common::Connection *connection, uint16_t requestId)
: RequestHandler(connection, requestId) {}
};
diff --git a/src/Daemon/Requests/IdentifyRequest.h b/src/Daemon/Requests/IdentifyRequest.h
index 75ecd6e..51a30e3 100644
--- a/src/Daemon/Requests/IdentifyRequest.h
+++ b/src/Daemon/Requests/IdentifyRequest.h
@@ -35,7 +35,7 @@ class IdentifyRequest : public Common::Request {
virtual void sendRequest();
public:
- IdentifyRequest(Net::Connection *connection, uint16_t requestId, slot_type slot, const std::string &hostname0)
+ IdentifyRequest(Common::Connection *connection, uint16_t requestId, slot_type slot, const std::string &hostname0)
: Common::Request(connection, requestId, slot), hostname(hostname0) {}
};
diff --git a/src/Daemon/Requests/LogRequest.h b/src/Daemon/Requests/LogRequest.h
index 9e22b64..cb8a111 100644
--- a/src/Daemon/Requests/LogRequest.h
+++ b/src/Daemon/Requests/LogRequest.h
@@ -39,7 +39,7 @@ class LogRequest : public Common::Request {
virtual void sendRequest();
public:
- LogRequest(Net::Connection *connection, uint16_t requestId, slot_type slot, Common::Logger::MessageCategory category0, Common::Logger::MessageLevel level0, time_t messageTimestamp0, const std::string &message0)
+ LogRequest(Common::Connection *connection, uint16_t requestId, slot_type slot, Common::Logger::MessageCategory category0, Common::Logger::MessageLevel level0, time_t messageTimestamp0, const std::string &message0)
: Common::Request(connection, requestId, slot), category(category0), level(level0), messageTimestamp(messageTimestamp0), message(message0) {}
};