NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::mgmt::ControlResponse Class Reference

ControlCommand response. More...

#include <control-response.hpp>

Collaboration diagram for ndn::mgmt::ControlResponse:


class  Error

Public Member Functions

 ControlResponse ()
 ControlResponse (uint32_t code, const std::string &text)
 ControlResponse (const Block &block)
uint32_t getCode () const
ControlResponsesetCode (uint32_t code)
const std::string & getText () const
ControlResponsesetText (const std::string &text)
const BlockgetBody () const
ControlResponsesetBody (const Block &body)
const BlockwireEncode () const
void wireDecode (const Block &block)

Protected Attributes

uint32_t m_code
std::string m_text
Block m_body
Block m_wire

Detailed Description

ControlCommand response.

Definition at line 32 of file control-response.hpp.

Constructor & Destructor Documentation

◆ ControlResponse() [1/3]

ndn::mgmt::ControlResponse::ControlResponse ( )

Definition at line 35 of file control-response.cpp.

◆ ControlResponse() [2/3]

ndn::mgmt::ControlResponse::ControlResponse ( uint32_t  code,
const std::string &  text 

Definition at line 40 of file control-response.cpp.

◆ ControlResponse() [3/3]

ndn::mgmt::ControlResponse::ControlResponse ( const Block block)

Definition at line 46 of file control-response.cpp.

References wireDecode().

Member Function Documentation

◆ getCode()

uint32_t ndn::mgmt::ControlResponse::getCode ( ) const

◆ setCode()

ControlResponse & ndn::mgmt::ControlResponse::setCode ( uint32_t  code)

Definition at line 87 of file control-response.hpp.

References m_code, m_wire, and ndn::Block::reset().

Referenced by ndn::util::DummyClientFace::~DummyClientFace().

◆ getText()

const std::string & ndn::mgmt::ControlResponse::getText ( ) const

Definition at line 95 of file control-response.hpp.

References m_text.

Referenced by nfd::rib::FibUpdater::computeAndSendFibUpdates(), and ndn::mgmt::operator<<().

◆ setText()

ControlResponse & ndn::mgmt::ControlResponse::setText ( const std::string &  text)

◆ getBody()

const Block & ndn::mgmt::ControlResponse::getBody ( ) const

Definition at line 109 of file control-response.hpp.

References m_body.

Referenced by ndn::nfd::Controller::~Controller().

◆ setBody()

ControlResponse & ndn::mgmt::ControlResponse::setBody ( const Block body)

◆ wireEncode()

◆ wireDecode()

Member Data Documentation

◆ m_code

uint32_t ndn::mgmt::ControlResponse::m_code

Definition at line 73 of file control-response.hpp.

Referenced by getCode(), setCode(), wireDecode(), and wireEncode().

◆ m_text

std::string ndn::mgmt::ControlResponse::m_text

Definition at line 74 of file control-response.hpp.

Referenced by getText(), setText(), wireDecode(), and wireEncode().

◆ m_body

Block ndn::mgmt::ControlResponse::m_body

Definition at line 75 of file control-response.hpp.

Referenced by getBody(), setBody(), wireDecode(), and wireEncode().

◆ m_wire

Block ndn::mgmt::ControlResponse::m_wire

Definition at line 77 of file control-response.hpp.

Referenced by setBody(), setCode(), setText(), wireDecode(), and wireEncode().

The documentation for this class was generated from the following files: