diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-07-08 17:56:18 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-07-08 17:56:18 +0200 |
commit | 4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c (patch) | |
tree | 23cf0d1ff55b3b1c4eefd3dd7fe2b7c0eb719a43 /src/Common/RequestManager.h | |
parent | e000cdf9d31433c4e90a8b59415de5ac8377005d (diff) | |
download | mad-4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c.tar mad-4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c.zip |
Einzelne Request-Klassen hinzugef?gt
Diffstat (limited to 'src/Common/RequestManager.h')
-rw-r--r-- | src/Common/RequestManager.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Common/RequestManager.h b/src/Common/RequestManager.h index f84cf23..a5861dd 100644 --- a/src/Common/RequestManager.h +++ b/src/Common/RequestManager.h @@ -20,7 +20,7 @@ #ifndef MAD_COMMON_REQUESTMANAGER_H_ #define MAD_COMMON_REQUESTMANAGER_H_ -#include "Request.h" +#include "RequestInfo.h" #include <Net/Connection.h> #include <map> @@ -29,9 +29,9 @@ namespace Common { class RequestManager { private: - typedef std::map<unsigned short,Request> RequestInfo; + typedef std::map<unsigned short,RequestInfo> RequestMap; - std::map<Net::Connection*,RequestInfo> requestMap; + std::map<Net::Connection*,RequestMap> requestMap; unsigned short requestId; unsigned short getRequestId() { @@ -42,7 +42,7 @@ class RequestManager { public: void registerConnection(Net::Connection *connection) { - requestMap.insert(std::make_pair(connection, RequestInfo())); + requestMap.insert(std::make_pair(connection, RequestMap())); connection->signalReceive().connect(sigc::mem_fun(this, &RequestManager::receiveHandler)); } @@ -51,7 +51,7 @@ class RequestManager { requestMap.erase(connection); } - bool sendRequest(Net::Connection *connection, Request::Type type); + bool sendRequest(Net::Connection *connection, RequestInfo requestData); RequestManager() : requestId(0) {} |