summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index 0c28793..762429e 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -29,6 +29,10 @@ int main() {
try {
connection.connect(Mad::Net::IPAddress("127.0.0.1", 6666));
+
+ while(connection.isConnecting())
+ connection.sendReceive();
+
connection.send(Mad::Net::Packet(0x0001, 0xABCD));
while(!connection.sendQueueEmpty())