diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Connection.cpp | 4 | ||||
-rw-r--r-- | src/Common/Connection.h | 2 |
2 files changed, 3 insertions, 3 deletions
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<Net::Packet> 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<Net::Packet> packet); virtual bool send(const Net::Packet &packet) = 0; |