[ndnSIM] How not to cache specific data packets?
Alex Afanasyev
alexander.afanasyev at ucla.edu
Fri Mar 20 22:59:26 PDT 2015
Hi Hisham,
There is no built-in way to do that, but you can always hack in the replacement policy and add something like
in insert method (see model/cs/custom-policies/* as a reference):
inline bool
insert (typename parent_trie::iterator item)
{
static const Name& prefix("/prefix_10”);
const Name& name = item->payload ()->GetData ()->GetName ();
if (prefix.IsPrefixOf(name))
{
return false;
}
... whatever existing code in insert method
}
—
Alex
> On Mar 20, 2015, at 9:33 PM, Hisham Farahat <hishamfarahat at gmail.com> wrote:
>
> Hi,
> I'm using ndnSim 1.0.
> Is there a way to disable caching for some data packets?
> For example, data packets named with /prefix_10 will not be cached while all other data packets will be cached normally.
>
> Regards,
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://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/20150320/d0e02e08/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150320/d0e02e08/attachment.bin>
More information about the ndnSIM
mailing list