void RibManager::sendResponse(const Name& name, const ControlResponse& response) { const Block& encodedControl = response.wireEncode(); shared_ptr<Data> responseData = make_shared<Data>(name); responseData->setContent(encodedControl); m_keyChain.sign(*responseData); m_face.put(*responseData); }
void ManagerBase::sendResponse(const Name& name, const ControlResponse& response) { NFD_LOG_DEBUG("responding" << " name: " << name << " code: " << response.getCode() << " text: " << response.getText()); const Block& encodedControl = response.wireEncode(); shared_ptr<Data> responseData(make_shared<Data>(name)); responseData->setContent(encodedControl); m_keyChain.sign(*responseData); m_face->putData(*responseData); }