[ndnSIM] [EXT] Declare ContentStore

Junxiao Shi shijunxiao at arizona.edu
Tue May 30 17:04:19 PDT 2023


Hi Asim

The old-style ContentStore has been deleted in ndnSIM 2.8.
CsTracer will no longer work and will report all zeros.

Yours, Junxiao

On Tue, May 30, 2023, 19:28 Asim ALHIMSYA via ndnSIM <
ndnsim at lists.cs.ucla.edu> wrote:

> *External Email*
> Dears,
> I'm trying to run the following (from ndn-cs-tracer.cpp) :
>
> void CsTracer::Connect()
> {
>   // // @TODO Do the same with NFD content store...
>    Ptr<ContentStore> cs = m_nodePtr->GetObject<ContentStore>();
>
>  cs->TraceConnectWithoutContext("CacheHits",MakeCallback(&CsTracer::CacheHits,
> this));
>
>  cs->TraceConnectWithoutContext("CacheMisses",MakeCallback(&CsTracer::CacheMisses,
> this));
>
>   Reset();
> }
>
> but still getting stuck into the following error
> ../src/ndnSIM/utils/tracers/ndn-cs-tracer.cpp:203:8: error: ‘ContentStore’
> was not declared in this scope
>
> How can I declare ContentStore in ndn2.8
>
> Thanks
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230530/84a4bb22/attachment.html>


More information about the ndnSIM mailing list