Making everything compile. Now everything seems to work, but more
checking is necessary
diff --git a/helper/ccnx-forwarding-helper.cc b/helper/ccnx-forwarding-helper.cc
index 6a8d3fb..31ffecb 100644
--- a/helper/ccnx-forwarding-helper.cc
+++ b/helper/ccnx-forwarding-helper.cc
@@ -32,37 +32,28 @@
m_strategy = Ccnx::NDN_FLOODING;
}
-CcnxForwardingHelper::CcnxForwardingHelper(Ccnx::ForwardingStrategy strategy)
+CcnxForwardingHelper::CcnxForwardingHelper (Ccnx::ForwardingStrategy strategy)
{
m_strategy = strategy;
}
-CcnxForwardingHelper::~CcnxForwardingHelper ()
-{
-
-}
-
void
-CcnxForwardingHelper::SetForwarding(Ptr<Ccnx> ccnx, Ptr<CcnxPit> pit) const
+CcnxForwardingHelper::SetForwarding (Ptr<Ccnx> ccnx) const
{
if(m_strategy == Ccnx::NDN_FLOODING)
{
Ptr<CcnxFloodingStrategy> ccnxForwarding = CreateObject<CcnxFloodingStrategy> ();
- //ccnxForwarding->SetCcnx(ccnx);
- ccnxForwarding->SetPit(pit);
ccnx->SetForwardingStrategy (ccnxForwarding);
}
else if(m_strategy == Ccnx::NDN_BESTROUTE)
{
Ptr<CcnxBestRouteStrategy> ccnxForwarding = CreateObject<CcnxBestRouteStrategy> ();
- //ccnxForwarding->SetCcnx(ccnx);
- ccnxForwarding->SetPit(pit);
ccnx->SetForwardingStrategy (ccnxForwarding);
}
else if (m_strategy == Ccnx::NDN_RANKING)
{}
}
-
+
// void
// CcnxForwardingHelper::PrintForwardingTableAllAt (Time printTime, Ptr<OutputStreamWrapper> stream) const
// {