diff options
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 6 |
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; |