<div dir="ltr">Dear all<div><br></div><div>I want to add a new variable in data.hpp and  create get&set functions.</div><div>Then , in ndn-producer.cpp::oninterest , i use set functions like below.</div><div><br></div><div><div>data->setString(str);</div><div>//std::cout << data->getString() << std::endl;</div></div><div>I make sure that the str was set.</div><div><br></div><div>but , in ndn-consumer.cpp::ondata , i use get functions like below.</div><div><br></div><div><div>std::cout << data->getString() << std::endl;</div></div><div><br></div><div>there is something wrong, str is empty!</div><div><br></div><div>why i want to do that is the content may be encoded , </div><div>and the consumer will receive some trash that i dont need.</div><div><br></div><div>can someone help me to solve this questions</div><div>I need some steps or tips.</div><div><br></div></div>