Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit 051943a

Browse files
author
Matt
committed
Retrieve TypeId of the instance of TcpSocketBase
Signed-off-by: Nat <natale.patriciello@gmail.com>
1 parent 8c38b33 commit 051943a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/internet/model/tcp-socket-base.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,13 @@ TcpSocketBase::GetTypeId (void)
184184
return tid;
185185
}
186186

187-
// TcpSocketState
187+
TypeId
188+
TcpSocketBase::GetInstanceTypeId () const
189+
{
190+
return TcpSocketBase::GetTypeId ();
191+
}
192+
193+
188194
TypeId
189195
TcpSocketState::GetTypeId (void)
190196
{

src/internet/model/tcp-socket-base.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ class TcpSocketBase : public TcpSocket
245245
*/
246246
static TypeId GetTypeId (void);
247247

248+
/**
249+
* \brief Get the instance TypeId
250+
* \return the instance TypeId
251+
*/
252+
virtual TypeId GetInstanceTypeId () const;
253+
248254
friend class TcpGeneralTest;
249255

250256
/**

0 commit comments

Comments
 (0)