void RibManager::onUnRegSuccess(const shared_ptr<const Interest>& request, const ControlParameters& parameters, const Route& route) { ControlResponse response; response.setCode(200); response.setText("Success"); response.setBody(parameters.wireEncode()); NFD_LOG_TRACE("onUnRegSuccess: unregistered " << route); if (static_cast<bool>(request)) { sendResponse(request->getName(), response); } }
void RibManager::sendSuccessResponse(const shared_ptr<const Interest>& request, const ControlParameters& parameters) { if (!static_cast<bool>(request)) { return; } ControlResponse response; response.setCode(200); response.setText("Success"); response.setBody(parameters.wireEncode()); if (static_cast<bool>(request)) { sendResponse(request->getName(), response); } }