[ndnSIM] Question about check consumer's CacheStore
大熊 浩也
okuma at stu.kobe-u.ac.jp
Tue Oct 8 19:05:29 PDT 2019
Hello all,
Thank you for always answering my questions. I am very saved.
This time, I have a question about the ndn consumer application
"ndn-consumer.cpp".
I would like to modify the program to determine InterestName by checking
its own ContentStore when Consumer sends Interest, but I do not know how
to declare ContentStore object in "ndn-consumer.cpp".
Referring to "forwarder.cpp", adding "ndn-consumer.cpp" to the following
declaration will generate an error.
ns3 :: Ptr <ns3 :: ndn :: ContentStore> csFromNdnSim
----------------------------------------------------------------------
../src/ndnSIM/apps/ndn-file-consumer.cpp: In member function ‘virtual
bool ns3::ndn::FileConsumer::SendFilePacket()’:
../src/ndnSIM/apps/ndn-file-consumer.cpp:302:12: error: ‘ContentStore’
is not a member of ‘ns3::ndn’
ns3::Ptr<ns3::ndn::ContentStore> csFromNdnSim;
^
../src/ndnSIM/apps/ndn-file-consumer.cpp:302:12: error: ‘ContentStore’
is not a member of ‘ns3::ndn’
../src/ndnSIM/apps/ndn-file-consumer.cpp:302:34: error: template
argument 1 is invalid
ns3::Ptr<ns3::ndn::ContentStore> csFromNdnSim;
^
../src/ndnSIM/apps/ndn-file-consumer.cpp:302:36: warning: unused
variable ‘csFromNdnSim’ [-Wunused-variable]
ns3::Ptr<ns3::ndn::ContentStore> csFromNdnSim;
^
----------------------------------------------------------------------
I'd appreciate it if you could answer my questions.
Regards,
Hiroya Okuma
More information about the ndnSIM
mailing list