summaryrefslogtreecommitdiffstats
path: root/src/Net/Connection.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-06-12 22:08:16 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-06-12 22:08:16 +0200
commit09e0fc185219e9e625baf096a68a221be55e0284 (patch)
treeca9f6cb1d54de72b50879a0a86378bdaf29e36d0 /src/Net/Connection.cpp
parentd2969d6f715949521e49a9b99c947ada86b1b49f (diff)
downloadmad-09e0fc185219e9e625baf096a68a221be55e0284.tar
mad-09e0fc185219e9e625baf096a68a221be55e0284.zip
Signalisiere empfangende Pakete.
Diffstat (limited to 'src/Net/Connection.cpp')
-rw-r--r--src/Net/Connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Net/Connection.cpp b/src/Net/Connection.cpp
index 49b51b4..298eb3e 100644
--- a/src/Net/Connection.cpp
+++ b/src/Net/Connection.cpp
@@ -74,7 +74,7 @@ bool Connection::recieve() {
continue;
if(!header.length) {
- Packet packet(header.type, header.requestId);
+ signal(this, Packet(header.type, header.requestId));
return true;
}
@@ -96,7 +96,7 @@ bool Connection::recieve() {
if(read < header.length+sizeof(Packet::Data))
continue;
- Packet packet(header.type, header.requestId, data, header.length);
+ signal(this, Packet(header.type, header.requestId, data, header.length));
delete [] data;
data = 0;