diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 22:51:52 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 22:51:52 +0200 |
commit | fb86311df4e1db902cbb6f527ad6c038543973a8 (patch) | |
tree | ddf09e4af448c9bf36f2272b656117e71ee6be05 /src/madc.cpp | |
parent | 09e0fc185219e9e625baf096a68a221be55e0284 (diff) | |
download | mad-fb86311df4e1db902cbb6f527ad6c038543973a8.tar mad-fb86311df4e1db902cbb6f527ad6c038543973a8.zip |
Einige Verbesserungen
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/madc.cpp b/src/madc.cpp index a4fc2bf..9d525b2 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -29,13 +29,14 @@ 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(); + connection.send(Mad::Net::Packet(0x0001, 0xABCD)); } catch(Mad::Net::Exception &e) { std::cerr << "Connection error: " << e.what() << std::endl; } + connection.disconnect(); + Mad::Net::Connection::deinit(); return 0; |