summaryrefslogtreecommitdiffstats
path: root/src/Client/Requests
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client/Requests')
-rw-r--r--src/Client/Requests/DaemonListRequest.cpp4
-rw-r--r--src/Client/Requests/DaemonListRequest.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Client/Requests/DaemonListRequest.cpp b/src/Client/Requests/DaemonListRequest.cpp
index 2c2e195..279d19c 100644
--- a/src/Client/Requests/DaemonListRequest.cpp
+++ b/src/Client/Requests/DaemonListRequest.cpp
@@ -19,7 +19,7 @@
#include "DaemonListRequest.h"
#include <Net/Connection.h>
-#include <Net/Packets/NameListPacket.h>
+#include <Net/Packets/HostListPacket.h>
namespace Mad {
namespace Client {
@@ -35,7 +35,7 @@ void DaemonListRequest::handlePacket(Net::Connection*, const Net::Packet &packet
return; // TODO Logging
}
- finish(Net::Packets::NameListPacket(packet));
+ finish(Net::Packets::HostListPacket(packet));
}
}
diff --git a/src/Client/Requests/DaemonListRequest.h b/src/Client/Requests/DaemonListRequest.h
index 5c57502..625e430 100644
--- a/src/Client/Requests/DaemonListRequest.h
+++ b/src/Client/Requests/DaemonListRequest.h
@@ -26,20 +26,20 @@ namespace Mad {
namespace Net {
namespace Packets {
-class NameListPacket;
+class HostListPacket;
}
}
namespace Client {
namespace Requests {
-class DaemonListRequest : public Common::Request<Net::Packets::NameListPacket> {
+class DaemonListRequest : public Common::Request<Net::Packets::HostListPacket> {
protected:
virtual void sendRequest(Net::Connection *connection, uint16_t requestId);
virtual void handlePacket(Net::Connection *connection, const Net::Packet &packet);
public:
- DaemonListRequest(slot_type slot) : Common::Request<Net::Packets::NameListPacket>(slot) {}
+ DaemonListRequest(slot_type slot) : Common::Request<Net::Packets::HostListPacket>(slot) {}
};
}