From 06f98c0289be27cca68f4400fb792e1d27a846b2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 25 Jun 2008 19:05:00 +0200 Subject: Initialisierung der Verbindung --- src/madc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/madc.cpp') 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()) -- cgit v1.2.3