diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-07-08 17:56:18 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-07-08 17:56:18 +0200 |
commit | 4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c (patch) | |
tree | 23cf0d1ff55b3b1c4eefd3dd7fe2b7c0eb719a43 /src/madc.cpp | |
parent | e000cdf9d31433c4e90a8b59415de5ac8377005d (diff) | |
download | mad-4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c.tar mad-4cd88a87e66dbbb9be4137de04ad79c97ac5bf2c.zip |
Einzelne Request-Klassen hinzugef?gt
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/madc.cpp b/src/madc.cpp index 17f6953..3f5d5bc 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -21,6 +21,8 @@ #include "Net/IPAddress.h" #include "Net/Packet.h" #include "Common/RequestManager.h" +#include "Common/Request/DisconnectRequest.h" +#include "Common/Request/PingRequest.h" #include <iostream> int main() { @@ -41,8 +43,8 @@ int main() { requestManager.registerConnection(connection); - requestManager.sendRequest(connection, Mad::Common::Request::TYPE_PING); - requestManager.sendRequest(connection, Mad::Common::Request::TYPE_DISCONNECT); + requestManager.sendRequest(connection, Mad::Common::Request::PingRequest()); + requestManager.sendRequest(connection, Mad::Common::Request::DisconnectRequest()); while(connection->isConnected()) { struct pollfd fd = connection->getPollfd(); |