From 051943a1a76e8561ab7c0181799e0900a9ee389d Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 6 Jan 2016 10:45:35 +0100 Subject: [PATCH] Retrieve TypeId of the instance of TcpSocketBase Signed-off-by: Nat --- src/internet/model/tcp-socket-base.cc | 8 +++++++- src/internet/model/tcp-socket-base.h | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/internet/model/tcp-socket-base.cc b/src/internet/model/tcp-socket-base.cc index 787166d90..007c269b0 100644 --- a/src/internet/model/tcp-socket-base.cc +++ b/src/internet/model/tcp-socket-base.cc @@ -184,7 +184,13 @@ TcpSocketBase::GetTypeId (void) return tid; } -// TcpSocketState +TypeId +TcpSocketBase::GetInstanceTypeId () const +{ + return TcpSocketBase::GetTypeId (); +} + + TypeId TcpSocketState::GetTypeId (void) { diff --git a/src/internet/model/tcp-socket-base.h b/src/internet/model/tcp-socket-base.h index 150623d78..feaad59cb 100644 --- a/src/internet/model/tcp-socket-base.h +++ b/src/internet/model/tcp-socket-base.h @@ -245,6 +245,12 @@ public: */ static TypeId GetTypeId (void); + /** + * \brief Get the instance TypeId + * \return the instance TypeId + */ + virtual TypeId GetInstanceTypeId () const; + friend class TcpGeneralTest; /**