summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-06-12 14:58:33 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-06-12 14:58:33 +0200
commit5679977b5d22e22be9e4c47c4a3dcab90c1bc5a4 (patch)
tree947df8f82a46e978fd7e69df079df9eaf6d2f357 /src/madc.cpp
parent99ec36989631dd116524a5fab03f1c1977870752 (diff)
downloadmad-5679977b5d22e22be9e4c47c4a3dcab90c1bc5a4.tar
mad-5679977b5d22e22be9e4c47c4a3dcab90c1bc5a4.zip
Das Versenden von Paketen ist jetzt m?glich
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index f55779e..63516d9 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -19,6 +19,7 @@
#include "Net/ClientConnection.h"
#include "Net/IPAddress.h"
+#include "Net/Packet.h"
#include <iostream>
int main() {
@@ -33,6 +34,8 @@ int main() {
std::cerr << "Connection error: " << e.what() << std::endl;
}
+ connection.send(Mad::Net::Packet(0x0001, 0xABCD));
+
connection.disconnect();
Mad::Net::Connection::deinit();