diff options
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; |