[ndnSIM] How to use SetContent method for Data Packet
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Fri Jul 3 10:01:41 PDT 2015
Hi Marco,
one of the definitions of the setContent method is the following:
Data::setContent(const uint8_t* content, size_t contentLength)
In order to use this definition, you may type the following code lines:
static const std::string content = "HELLO KITTY”;
data->setContent(reinterpret_cast<const uint8_t*>(content.c_str()), content.size());
Hope that this would help you.
--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA
> On Jul 3, 2015, at 1:12 AM, Marco Ulgelmo <marco.ulgelmo at aol.com> wrote:
>
> setContent
More information about the ndnSIM
mailing list