From c8d469cc3de8ef2fb95f7b47355ebf5318a4c22f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 15 May 2009 17:30:40 +0200 Subject: Einfache (ziemlich kaputte) Multithreaded IO --- src/Common/ClientConnection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Common/ClientConnection.cpp') diff --git a/src/Common/ClientConnection.cpp b/src/Common/ClientConnection.cpp index 0e080fd..7b33fb2 100644 --- a/src/Common/ClientConnection.cpp +++ b/src/Common/ClientConnection.cpp @@ -20,6 +20,8 @@ #include "ClientConnection.h" #include +#include "Logger.h" + namespace Mad { namespace Common { @@ -27,8 +29,8 @@ ClientConnection::ClientConnection() : connection(new Net::ClientConnection) { connection->signalReceive().connect(sigc::mem_fun(this, &ClientConnection::receive)); } -void ClientConnection::send(const Net::Packet &packet) { - connection->send(packet); +bool ClientConnection::send(const Net::Packet &packet) { + return connection->send(packet); } void ClientConnection::connect(const Net::IPAddress &address, bool daemon) throw(Net::Exception) { -- cgit v1.2.3