diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-18 14:51:48 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-18 14:51:48 +0200 |
commit | b503a70fca019368399038cde649b3ef8df85bb9 (patch) | |
tree | 60fa313583dcf0482e7bab70dfa2fa8e34fd62cd /src/Client/Requests | |
parent | d84a3b91346038bf55d7111462dab42a0a26445d (diff) | |
download | mad-b503a70fca019368399038cde649b3ef8df85bb9.tar mad-b503a70fca019368399038cde649b3ef8df85bb9.zip |
Flexiblere ?bertragung von Host-Listen
Diffstat (limited to 'src/Client/Requests')
-rw-r--r-- | src/Client/Requests/DaemonListRequest.cpp | 4 | ||||
-rw-r--r-- | src/Client/Requests/DaemonListRequest.h | 6 |
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) {} }; } |