summaryrefslogtreecommitdiffstats
path: root/src/mad-core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r--src/mad-core.cpp8
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;