diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-15 06:26:15 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-15 06:26:15 +0200 |
commit | 9ca70bbfa460fe1c6c31b8e685be6df24935ab73 (patch) | |
tree | 8fe0a6e164d7d2f4e5f23e073c0a80a0b29daf94 /src/Common/Requests/IdentifyRequest.cpp | |
parent | 30bec92571ba23f1f2aa6b12149f6545a4ef0d7e (diff) | |
download | mad-9ca70bbfa460fe1c6c31b8e685be6df24935ab73.tar mad-9ca70bbfa460fe1c6c31b8e685be6df24935ab73.zip |
Kann jetzt Status von Daemons abfragen
Diffstat (limited to 'src/Common/Requests/IdentifyRequest.cpp')
-rw-r--r-- | src/Common/Requests/IdentifyRequest.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Common/Requests/IdentifyRequest.cpp b/src/Common/Requests/IdentifyRequest.cpp index 54d49e2..9214baf 100644 --- a/src/Common/Requests/IdentifyRequest.cpp +++ b/src/Common/Requests/IdentifyRequest.cpp @@ -36,24 +36,17 @@ bool IdentifyRequest::send(Net::Connection *connection, const std::string &hostn } bool IdentifyRequest::sendRequest(Net::Connection *connection, uint16_t requestId) { - if(isSent()) - return false; - if(!connection->send(Net::Packet(Net::Packet::IDENTIFY, requestId, hostname.c_str(), hostname.length()))) return false; - setSent(); return true; } bool IdentifyRequest::handlePacket(Net::Connection*, const Net::Packet &packet) { - if(isFinished()) - return false; - if(packet.getType() != Net::Packet::OK) return false; // TODO Logging - setFinished(); + signalFinished().emit(); return true; } |