From 406510059972fdbfb14bc8985980f52c655d5946 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 7 Sep 2008 23:42:04 +0200 Subject: Einige Requests und Pakettypen umbenannt --- src/Common/Request/IdentifyRequest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Common/Request/IdentifyRequest.h') diff --git a/src/Common/Request/IdentifyRequest.h b/src/Common/Request/IdentifyRequest.h index bb98bad..e88ce4b 100644 --- a/src/Common/Request/IdentifyRequest.h +++ b/src/Common/Request/IdentifyRequest.h @@ -53,7 +53,7 @@ class IdentifyRequest: public Request { if(isSent()) return false; - if(!connection->send(Net::Packet(Net::Packet::TYPE_IDENTIFY_REQ, requestId, hostname.c_str(), hostname.length()))) + if(!connection->send(Net::Packet(Net::Packet::TYPE_IDENTIFY, requestId, hostname.c_str(), hostname.length()))) return false; setSent(); @@ -64,7 +64,7 @@ class IdentifyRequest: public Request { if(isFinished()) return false; - if(packet.getType() != Net::Packet::TYPE_IDENTIFY_REP) + if(packet.getType() != Net::Packet::TYPE_IDENTIFY) return false; // TODO Logging std::cout << "Identified as '" << hostname << "'." << std::endl; -- cgit v1.2.3