22 #ifndef NDN_MGMT_STATUS_DATASET_CONTEXT_HPP 23 #define NDN_MGMT_STATUS_DATASET_CONTEXT_HPP 25 #include "../interest.hpp" 26 #include "../data.hpp" 27 #include "../util/time.hpp" 28 #include "../encoding/encoding-buffer.hpp" 59 const time::milliseconds&
69 setExpiry(
const time::milliseconds& expiry);
95 typedef std::function<void(
const Name& dataName,
const Block& content, time::milliseconds imsFresh,
96 bool isFinalBlock)> DataSender;
97 typedef std::function<void(const ControlResponse& resp)> NackSender;
100 const DataSender& dataSender,
101 const NackSender& nackSender);
107 DataSender m_dataSender;
108 NackSender m_nackSender;
110 time::milliseconds m_expiry;
113 shared_ptr<EncodingBuffer> m_buffer;
114 uint64_t m_segmentNo;
127 #endif // NDN_MGMT_STATUS_DATASET_CONTEXT_HPP const Name & getPrefix() const
void reject(const ControlResponse &resp=ControlResponse().setCode(400))
declare the non-existence of a response
Copyright (c) 2013-2017 Regents of the University of California.
StatusDatasetContext & setExpiry(const time::milliseconds &expiry)
set expiration duration
represents a dispatcher on server side of NFD Management protocol
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Represents a TLV element of NDN packet format.
represents an Interest packet
mgmt::ControlResponse ControlResponse
void end()
end the response successfully after appending zero or more blocks
Represents an absolute name.
StatusDatasetContext & setPrefix(const Name &prefix)
change prefix of Data packets
void append(const Block &block)
append a Block to the response
provides a context for generating response to a StatusDataset request
const time::milliseconds & getExpiry() const