summaryrefslogtreecommitdiffstats
path: root/source/Protocol
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 10:23:19 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 10:23:19 +0200
commit7a43f6be09cfe74dc4a757e949ba88ce033ac419 (patch)
tree5273b2363de5c1ac5201cc443d8682733db598c4 /source/Protocol
parentProtoProxy: fixed after file renaming (diff)
downloadcuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.gz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.bz2
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.lz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.xz
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.tar.zst
cuberite-7a43f6be09cfe74dc4a757e949ba88ce033ac419.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol.h1
-rw-r--r--source/Protocol/Protocol132.cpp2
-rw-r--r--source/Protocol/Protocol132.h2
-rw-r--r--source/Protocol/ProtocolRecognizer.cpp8
-rw-r--r--source/Protocol/ProtocolRecognizer.h1
5 files changed, 12 insertions, 2 deletions
diff --git a/source/Protocol/Protocol.h b/source/Protocol/Protocol.h
index af915a2bb..e871e958a 100644
--- a/source/Protocol/Protocol.h
+++ b/source/Protocol/Protocol.h
@@ -37,6 +37,7 @@ public:
m_Client(a_Client)
{
}
+ virtual ~cProtocol() {}
/// Called when client sends some data
virtual void DataReceived(const char * a_Data, int a_Size) = 0;
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp
index 32b55e280..a39697526 100644
--- a/source/Protocol/Protocol132.cpp
+++ b/source/Protocol/Protocol132.cpp
@@ -150,6 +150,7 @@ cProtocol132::cProtocol132(cClientHandle * a_Client) :
super(a_Client),
m_IsEncrypted(false)
{
+ LOGD("Created cProtocol132 at %p", this);
}
@@ -162,6 +163,7 @@ cProtocol132::~cProtocol132()
{
LOGD("There are %d unsent bytes while deleting cProtocol132", m_DataToSend.size());
}
+ LOGD("Deleted cProtocol132 at %p", this);
}
diff --git a/source/Protocol/Protocol132.h b/source/Protocol/Protocol132.h
index dde34ca30..5fb82148d 100644
--- a/source/Protocol/Protocol132.h
+++ b/source/Protocol/Protocol132.h
@@ -24,8 +24,6 @@ class cProtocol132 :
public:
cProtocol132(cClientHandle * a_Client);
-
- // DEBUG:
virtual ~cProtocol132();
/// Called when client sends some data:
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp
index 095d63f8f..96a831063 100644
--- a/source/Protocol/ProtocolRecognizer.cpp
+++ b/source/Protocol/ProtocolRecognizer.cpp
@@ -29,6 +29,14 @@ cProtocolRecognizer::cProtocolRecognizer(cClientHandle * a_Client) :
+cProtocolRecognizer::~cProtocolRecognizer()
+{
+}
+
+
+
+
+
void cProtocolRecognizer::DataReceived(const char * a_Data, int a_Size)
{
if (m_Protocol == NULL)
diff --git a/source/Protocol/ProtocolRecognizer.h b/source/Protocol/ProtocolRecognizer.h
index 3eff8d2ab..0a42c279f 100644
--- a/source/Protocol/ProtocolRecognizer.h
+++ b/source/Protocol/ProtocolRecognizer.h
@@ -32,6 +32,7 @@ class cProtocolRecognizer :
public:
cProtocolRecognizer(cClientHandle * a_Client);
+ virtual ~cProtocolRecognizer();
/// Called when client sends some data:
virtual void DataReceived(const char * a_Data, int a_Size) override;