diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-25 19:05:00 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-25 19:05:00 +0200 |
commit | 06f98c0289be27cca68f4400fb792e1d27a846b2 (patch) | |
tree | a1ccf91970690007be6199ef2dbdbef7fabacf1f /src/madc.cpp | |
parent | 4da2aa187717f34a98792ca6708da959b7937998 (diff) | |
download | mad-06f98c0289be27cca68f4400fb792e1d27a846b2.tar mad-06f98c0289be27cca68f4400fb792e1d27a846b2.zip |
Initialisierung der Verbindung
Diffstat (limited to 'src/madc.cpp')
-rw-r--r-- | src/madc.cpp | 4 |
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()) |