summaryrefslogtreecommitdiffstats
path: root/src/Common
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-06-02 22:50:28 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-06-02 22:50:28 +0200
commitf79a215fce13d86a495b6741aae0827ccce43757 (patch)
treeb7a6f61a6ab45cff81e1d7aedb248be56ad2ed7a /src/Common
parent95f2a6b40f5e9dc27be6609d3f7018b3342c4182 (diff)
downloadmad-f79a215fce13d86a495b6741aae0827ccce43757.tar
mad-f79a215fce13d86a495b6741aae0827ccce43757.zip
Net-Namespace auf die neue Signal-Implementierung umgebaut
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Connection.cpp4
-rw-r--r--src/Common/Connection.h2
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;