summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-06-12 21:42:26 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-06-12 21:42:26 +0200
commitd2969d6f715949521e49a9b99c947ada86b1b49f (patch)
treebb3d0db8509cc2d44c5db174ec26755080639577 /src/madc.cpp
parent4b0778537ea5f1c4d7592639208e7c235abab260 (diff)
downloadmad-d2969d6f715949521e49a9b99c947ada86b1b49f.tar
mad-d2969d6f715949521e49a9b99c947ada86b1b49f.zip
ServerConnection hinzugef?gt.
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index 731186e..a4fc2bf 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -29,15 +29,13 @@ int main() {
try {
connection.connect(Mad::Net::IPAddress("127.0.0.1", 6666));
+ std::cout << connection.send(Mad::Net::Packet(0x0001, 0xABCD)) << std::endl;
+ connection.disconnect();
}
catch(Mad::Net::Exception &e) {
std::cerr << "Connection error: " << e.what() << std::endl;
}
- std::cout << connection.send(Mad::Net::Packet(0x0001, 0xABCD)) << std::endl;
-
- connection.disconnect();
-
Mad::Net::Connection::deinit();
return 0;