realtimenetprots/sipfw/SIP/ConnectionMgr/src/CIcmpReceiver.cpp
changeset 0 307788aac0a8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/realtimenetprots/sipfw/SIP/ConnectionMgr/src/CIcmpReceiver.cpp	Tue Feb 02 01:03:15 2010 +0200
@@ -0,0 +1,67 @@
+// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Name          : CIcmpReceiver.cpp
+// Part of       : ConnectionMgr
+// Version       : SIP/4.0
+//
+
+
+
+#include "CIcmpReceiver.h"
+#include "CIcmpV4Receiver.h"
+#include "CIcmpV6Receiver.h"
+
+
+// -----------------------------------------------------------------------------
+// CIcmpReceiver::NewL
+// -----------------------------------------------------------------------------
+//
+CIcmpReceiver* CIcmpReceiver::NewL(MIcmpErrorObserver& aObserver,
+								   RSocketServ& aServer)
+	{
+	CIcmpReceiver* self = new (ELeave) CIcmpReceiver();
+	CleanupStack::PushL(self);
+	self->ConstructL(aObserver, aServer);
+	CleanupStack::Pop();
+	return self;
+	}
+
+// -----------------------------------------------------------------------------
+// CIcmpReceiver::ConstructL
+// -----------------------------------------------------------------------------
+//
+void CIcmpReceiver::ConstructL(MIcmpErrorObserver& aObserver,
+							   RSocketServ& aServer)
+	{
+	iIcmpV4Receiver = CIcmpV4Receiver::NewL(aObserver, aServer);
+	iIcmpV6Receiver = CIcmpV6Receiver::NewL(aObserver, aServer);
+	}
+
+// -----------------------------------------------------------------------------
+// CIcmpReceiver::~CIcmpReceiver
+// -----------------------------------------------------------------------------
+//
+CIcmpReceiver::~CIcmpReceiver()
+	{
+	delete iIcmpV4Receiver; 
+	delete iIcmpV6Receiver;
+	}
+
+// -----------------------------------------------------------------------------
+// CIcmpReceiver::CIcmpReceiver
+// -----------------------------------------------------------------------------
+//
+CIcmpReceiver::CIcmpReceiver()
+	{
+	}