[ndnSIM] Convert Name of Interest

Xinyu Ma bitmxy at gmail.com
Thu Jul 18 12:37:33 PDT 2019


Hello,

You can use the toUri() function: interest.getName().toUri()

Best,
Xinyu Ma.

> On Jul 18, 2019, at 11:00 AM, bouchrit leila via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:
> 
> Hi all,
> I want to retrieve the name of Interest to convert to an integer
>  using a hash function.
> ndn::Name (interest.getName ()).
> My question is how i can convert the name of Interest and Data into string. 
> 
> tips can help me and thank you all for help.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim



More information about the ndnSIM mailing list