diff options
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; |