diff options
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/madc.cpp b/src/madc.cpp index 9d525b2..0c28793 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -30,6 +30,9 @@ int main() { try { connection.connect(Mad::Net::IPAddress("127.0.0.1", 6666)); connection.send(Mad::Net::Packet(0x0001, 0xABCD)); + + while(!connection.sendQueueEmpty()) + connection.sendReceive(); } catch(Mad::Net::Exception &e) { std::cerr << "Connection error: " << e.what() << std::endl; |