diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 23:51:52 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 23:51:52 +0200 |
commit | 6aedcd087462eb198958229f3c9785da6ac52cf3 (patch) | |
tree | 219c38296baefe188d2025f352d0020a72770183 /src/mad-core.cpp | |
parent | 177c770bbb4c75b42688d5c5e7627c2fef8500e5 (diff) | |
download | mad-6aedcd087462eb198958229f3c9785da6ac52cf3.tar mad-6aedcd087462eb198958229f3c9785da6ac52cf3.zip |
Receive richtig schreiben...
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r-- | src/mad-core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mad-core.cpp b/src/mad-core.cpp index 76e7b9a..5ac0794 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -21,8 +21,8 @@ #include "Net/IPAddress.h" #include <iostream> -void recieveHandler(const Mad::Net::Connection*, const Mad::Net::Packet &packet) { - std::cout << "Recieved packet:" << std::endl; +void receiveHandler(const Mad::Net::Connection*, const Mad::Net::Packet &packet) { + std::cout << "Received packet:" << std::endl; std::cout << " Type: " << packet.getType() << std::endl; std::cout << " Request ID: " << packet.getRequestId() << std::endl; std::cout << " Length: " << packet.getLength() << std::endl; @@ -33,11 +33,11 @@ int main() { Mad::Net::ServerConnection connection; - connection.signalRecieve().connect(sigc::ptr_fun(recieveHandler)); + connection.signalReceive().connect(sigc::ptr_fun(receiveHandler)); try { connection.listen(Mad::Net::IPAddress("0.0.0.0", 6666)); - while(!connection.recieve()); + while(!connection.receive()); } catch(Mad::Net::Exception &e) { std::cerr << "Connection error: " << e.what() << std::endl; |