diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-25 03:16:01 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-25 03:16:01 +0200 |
commit | 725ed2a06c5e376168dc1552d52cf0b77ed5c073 (patch) | |
tree | 006605126f7089956405ef203c9ea3800e3f5f28 /src/madc.cpp | |
parent | c97168bd5113fe726de42a4249df58c679e42240 (diff) | |
download | mad-725ed2a06c5e376168dc1552d52cf0b77ed5c073.tar mad-725ed2a06c5e376168dc1552d52cf0b77ed5c073.zip |
Neuer Send-Stack
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; |