ControlCommand response. More...
#include <control-response.hpp>
Classes | |
class | Error |
Public Member Functions | |
ControlResponse () | |
ControlResponse (uint32_t code, const std::string &text) | |
ControlResponse (const Block &block) | |
uint32_t | getCode () const |
ControlResponse & | setCode (uint32_t code) |
const std::string & | getText () const |
ControlResponse & | setText (const std::string &text) |
const Block & | getBody () const |
ControlResponse & | setBody (const Block &body) |
const Block & | wireEncode () const |
void | wireDecode (const Block &block) |
Protected Attributes | |
uint32_t | m_code |
std::string | m_text |
Block | m_body |
Block | m_wire |
ControlCommand response.
Definition at line 32 of file control-response.hpp.
ndn::mgmt::ControlResponse::ControlResponse | ( | ) |
Definition at line 35 of file control-response.cpp.
Referenced by ndn::mgmt::ControlResponse::Error::Error().
ndn::mgmt::ControlResponse::ControlResponse | ( | uint32_t | code, |
const std::string & | text | ||
) |
Definition at line 40 of file control-response.cpp.
|
explicit |
Definition at line 46 of file control-response.cpp.
References wireDecode().
|
inline |
Definition at line 85 of file control-response.hpp.
References m_code.
Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), ndn::nfd::Controller::Controller(), ndn::mgmt::ControlResponse::Error::Error(), nfd::rib::RibManager::onRibUpdateFailure(), and ndn::mgmt::operator<<().
|
inline |
Definition at line 91 of file control-response.hpp.
References m_code, m_wire, and ndn::Block::reset().
Referenced by ndn::util::DummyClientFace::DummyClientFace(), and ndn::mgmt::ControlResponse::Error::Error().
|
inline |
Definition at line 99 of file control-response.hpp.
References m_text.
Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), nfd::rib::AutoPrefixPropagator::disable(), ndn::mgmt::ControlResponse::Error::Error(), nfd::rib::RibManager::onRibUpdateFailure(), and ndn::mgmt::operator<<().
|
inline |
Definition at line 105 of file control-response.hpp.
References m_text, m_wire, ndn::Block::reset(), and websocketpp::frame::opcode::text.
Referenced by ndn::mgmt::ControlResponse::Error::Error().
|
inline |
Definition at line 113 of file control-response.hpp.
References m_body.
Referenced by ndn::nfd::Controller::Controller(), and ndn::mgmt::ControlResponse::Error::Error().
|
inline |
Definition at line 119 of file control-response.hpp.
References ndn::Block::encode(), m_body, m_wire, ndn::mgmt::operator<<(), and ndn::Block::reset().
Referenced by ndn::util::DummyClientFace::DummyClientFace(), and ndn::mgmt::ControlResponse::Error::Error().
const Block & ndn::mgmt::ControlResponse::wireEncode | ( | ) | const |
Definition at line 52 of file control-response.cpp.
References ndn::tlv::nfd::ControlResponse, ndn::Block::encode(), ndn::Block::hasWire(), m_body, m_code, m_text, m_wire, ndn::encoding::makeNonNegativeIntegerBlock(), ndn::encoding::makeStringBlock(), ndn::Block::push_back(), ndn::tlv::nfd::StatusCode, and ndn::tlv::nfd::StatusText.
Referenced by ndn::util::DummyClientFace::DummyClientFace(), ndn::mgmt::ControlResponse::Error::Error(), and ndn::mgmt::Dispatcher::removeTopPrefix().
void ndn::mgmt::ControlResponse::wireDecode | ( | const Block & | block | ) |
Definition at line 70 of file control-response.cpp.
References ndn::tlv::nfd::ControlResponse, ndn::Block::elements_begin(), ndn::Block::elements_end(), m_body, m_code, m_text, m_wire, ndn::Block::parse(), ndn::encoding::readString(), ndn::tlv::nfd::StatusCode, ndn::tlv::nfd::StatusText, ndn::to_string(), and ndn::Block::type().
Referenced by ndn::nfd::Controller::Controller(), ControlResponse(), and ndn::mgmt::ControlResponse::Error::Error().
|
protected |
Definition at line 77 of file control-response.hpp.
Referenced by getCode(), setCode(), wireDecode(), and wireEncode().
|
protected |
Definition at line 78 of file control-response.hpp.
Referenced by getText(), setText(), wireDecode(), and wireEncode().
|
protected |
Definition at line 79 of file control-response.hpp.
Referenced by getBody(), setBody(), wireDecode(), and wireEncode().
|
mutableprotected |
Definition at line 81 of file control-response.hpp.
Referenced by setBody(), setCode(), setText(), wireDecode(), and wireEncode().