summaryrefslogtreecommitdiffstats
path: root/source/Protocol
diff options
context:
space:
mode:
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;