[ndnSIM] Fwd: URGENT: Issues with link control helper

sofiya kandi starsofwork at gmail.com
Mon May 6 02:38:14 PDT 2019


---------- Forwarded message ---------
From: sofiya kandi <starsofwork at gmail.com>
Date: Mon, May 6, 2019 at 3:04 PM
Subject: URGENT: Issues with link control helper
To: <ndnsim at lists.cs.ucla.edu>


Hello All,

I am trying to include these two lines

  // The failure of the link connecting consumer and router will start
from seconds 10.0 to 15.0  Simulator::Schedule (Seconds (10.0),
ndn::LinkControlHelper::FailLink, nodes.Get (0), nodes.Get (1));
Simulator::Schedule (Seconds (15.0), ndn::LinkControlHelper::UpLink,
nodes.Get (0), nodes.Get (1));

in the code ndn-congestion-alt-topo-plugin.cpp, and see the following
error through the header file is included

root at sophiya-Gateway-NE46Rs:~/Desktop/ndnSIM/ns-3# ./waf --run
ndn-congestion-alt-topo-plugin-test
Waf: Entering directory `/root/Desktop/ndnSIM/ns-3/build'
[2666/3092] Compiling
src/ndnSIM/examples/ndn-congestion-alt-topo-plugin-test.cpp
In file included from ./ns3/simulator.h:26:0,
                 from ./ns3/event-garbage-collector.h:25,
                 from ./ns3/core-module.h:30,
                 from
../src/ndnSIM/examples/ndn-congestion-alt-topo-plugin-test.cpp:22:
./ns3/make-event.h: In instantiation of ‘void ns3::MakeEvent(void
(*)(U1, U2), T1, T2)::EventFunctionImpl2::Notify() [with U1 =
ns3::Ptr<ns3::Node>; U2 = ns3::Ptr<ns3::Node>; T1 = const char*; T2 =
const char*]’:
./ns3/make-event.h:674:3:   required from ‘ns3::EventImpl*
ns3::MakeEvent(void (*)(U1, U2), T1, T2) [with U1 =
ns3::Ptr<ns3::Node>; U2 = ns3::Ptr<ns3::Node>; T1 = const char*; T2 =
const char*]’
./ns3/simulator.h:1442:39:   required from ‘static ns3::EventId
ns3::Simulator::Schedule(const ns3::Time&, void (*)(U1, U2), T1, T2)
[with U1 = ns3::Ptr<ns3::Node>; U2 = ns3::Ptr<ns3::Node>; T1 = const
char*; T2 = const char*]’
../src/ndnSIM/examples/ndn-congestion-alt-topo-plugin-test.cpp:147:84:
  required from here
./ns3/make-event.h:669:20: error: could not convert
‘((ns3::MakeEvent(void (*)(U1, U2), T1, T2) [with U1 =
ns3::Ptr<ns3::Node>; U2 = ns3::Ptr<ns3::Node>; T1 = const char*; T2 =
const char*]::EventFunctionImpl2*)this)->ns3::MakeEvent(void (*)(U1,
U2), T1, T2) [with U1 = ns3::Ptr<ns3::Node>; U2 = ns3::Ptr<ns3::Node>;
T1 = const char*; T2 = const char*]::EventFunctionImpl2::m_a1’ from
‘ns3::TypeTraits<const char*>::ReferencedType {aka const char*}’ to
‘ns3::Ptr<ns3::Node>’
       (*m_function)(m_a1, m_a2);

Please let me know if I am missing any line.

Thanks

Sofiya Kandi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190506/dc8c3d9b/attachment.html>


More information about the ndnSIM mailing list