diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-13 02:23:04 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-13 02:23:04 +0200 |
commit | 920c506d477bd7f357e05590e8cdedf8e5e8a1b8 (patch) | |
tree | ae160560e38c6757ca3e37911c4d1196b163da9b /src/Common/Request | |
parent | 47d7a53099be598c26be4de63e9d8fe52c2e0e66 (diff) | |
download | mad-920c506d477bd7f357e05590e8cdedf8e5e8a1b8.tar mad-920c506d477bd7f357e05590e8cdedf8e5e8a1b8.zip |
Einige Umstrukturierungen an den RequestHandler-Klassen
Diffstat (limited to 'src/Common/Request')
-rw-r--r-- | src/Common/Request/IdentifyRequest.h | 4 | ||||
-rw-r--r-- | src/Common/Request/Request.h | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/Common/Request/IdentifyRequest.h b/src/Common/Request/IdentifyRequest.h index e7b9d21..2637e47 100644 --- a/src/Common/Request/IdentifyRequest.h +++ b/src/Common/Request/IdentifyRequest.h @@ -64,11 +64,9 @@ class IdentifyRequest: public Request { if(isFinished()) return false; - if(packet.getType() != Net::Packet::IDENTIFY) + if(packet.getType() != Net::Packet::OK) return false; // TODO Logging - std::cout << "Identified as '" << hostname << "'." << std::endl; - setFinished(); return true; } diff --git a/src/Common/Request/Request.h b/src/Common/Request/Request.h index 657a0a7..5087992 100644 --- a/src/Common/Request/Request.h +++ b/src/Common/Request/Request.h @@ -20,13 +20,13 @@ #ifndef MAD_COMMON_REQUEST_REQUEST_H_ #define MAD_COMMON_REQUEST_REQUEST_H_ -#include "../RequestHandler.h" +#include "../RequestHandler/RequestHandler.h" namespace Mad { namespace Common { namespace Request { -class Request : public RequestHandler { +class Request : public RequestHandler::RequestHandler { private: bool sent; |