From f79a215fce13d86a495b6741aae0827ccce43757 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 2 Jun 2009 22:50:28 +0200 Subject: Net-Namespace auf die neue Signal-Implementierung umgebaut --- src/Common/Connection.cpp | 4 ++-- src/Common/Connection.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Common') diff --git a/src/Common/Connection.cpp b/src/Common/Connection.cpp index 5b2eee9..db962ea 100644 --- a/src/Common/Connection.cpp +++ b/src/Common/Connection.cpp @@ -23,8 +23,8 @@ namespace Mad { namespace Common { -void Connection::receive(const Net::Packet &packet) { - signalReceive.emit(XmlPacket(packet), packet.getRequestId()); +void Connection::receive(boost::shared_ptr packet) { + signalReceive.emit(XmlPacket(*packet), packet->getRequestId()); } bool Connection::sendPacket(const XmlPacket &packet, uint16_t requestId) { diff --git a/src/Common/Connection.h b/src/Common/Connection.h index 0dd2f2e..b794a88 100644 --- a/src/Common/Connection.h +++ b/src/Common/Connection.h @@ -44,7 +44,7 @@ class Connection : private boost::noncopyable { protected: Connection() : authenticated(0) {} - void receive(const Net::Packet &packet); + void receive(boost::shared_ptr packet); virtual bool send(const Net::Packet &packet) = 0; -- cgit v1.2.3