<div dir="ltr"><div><div>Hi all,<br></div><div><br></div><div><span style="font-family:arial,helvetica,sans-serif">I am using </span><span style="font-family:courier new,monospace"><span style="font-family:arial,helvetica,sans-serif">ContentStore to store some msgs in reception order. I am using the fifo variant. The issue is when printing the content of the cache, it looks not ordered as you can see below (sequence number in the end of the name)</span>.<br>

<br></span></div><div><span style="font-family:courier new,monospace"><span style="font-family:arial,helvetica,sans-serif">Do you have an idea about the cause and may be a solution to this issue...</span><br></span></div>

<div><span style="font-family:courier new,monospace"><br></span></div><b>%%%%%%%% ----- Code ----- %%%%%%%</b><br><span style="font-family:courier new,monospace">ObjectFactory m_contentStoreFactory;<br>m_contentStoreFactory.SetTypeId ("ns3::ndn::cs::Stats::Fifo");<br>

m_contentStoreFactory.Set("MaxSize", StringValue ("50"));<br>m_pubCS = m_contentStoreFactory.Create<ContentStore> ();<br>......<br>Ptr<ns3::ndn::cs::Entry> entry = m_pubCS->Begin();<br>
while(entry){<br>
        NS_LOG_DEBUG("Cache Entry:"<< entry->GetData()->GetName());<br>        entry = m_pubCS->Next(entry);<br>}</span><br><b>%%%%%%%% ----- OutPut ----- %%%%%%%</b><br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%02<br>

18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%01<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%04<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%03<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%06<br>

18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%05<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%08<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%07<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0A<br>

18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%09<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0C<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0B<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0E<br>

18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0D<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%10<br>18.0186s 1 ndn.ANode:OnMsg(): [DEBUG] Cache Entry:/news/2/%00%0F<br><br><br></div>Best regards<br clear="all">

<div><div><div>---<br>Wassim Drira<br></div>
</div></div></div>