blob: fb583d814de6eab302f25343964fc13e1e0d4e96 [file] [log] [blame]
Junxiao Shi65f1a712014-11-20 14:59:36 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Junxiao Shi5d75fd92017-08-08 18:09:20 +00002/*
Junxiao Shi643b7f52018-07-18 08:05:01 -06003 * Copyright (c) 2013-2018 Regents of the University of California.
Junxiao Shi65f1a712014-11-20 14:59:36 -07004 *
5 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
6 *
7 * ndn-cxx library is free software: you can redistribute it and/or modify it under the
8 * terms of the GNU Lesser General Public License as published by the Free Software
9 * Foundation, either version 3 of the License, or (at your option) any later version.
10 *
11 * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14 *
15 * You should have received copies of the GNU General Public License and GNU Lesser
16 * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
17 * <http://www.gnu.org/licenses/>.
18 *
19 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
20 */
21
Junxiao Shi7357ef22016-09-07 02:39:37 +000022#include "forwarder-status.hpp"
Junxiao Shi65f1a712014-11-20 14:59:36 -070023#include "encoding/block-helpers.hpp"
Davide Pesavento25e3d8c2017-02-08 22:17:46 -050024#include "encoding/encoding-buffer.hpp"
25#include "encoding/tlv-nfd.hpp"
Junxiao Shi65f1a712014-11-20 14:59:36 -070026#include "util/concepts.hpp"
27
28namespace ndn {
29namespace nfd {
30
Davide Pesavento25e3d8c2017-02-08 22:17:46 -050031BOOST_CONCEPT_ASSERT((StatusDatasetItem<ForwarderStatus>));
Junxiao Shi65f1a712014-11-20 14:59:36 -070032
33ForwarderStatus::ForwarderStatus()
Davide Pesavento25e3d8c2017-02-08 22:17:46 -050034 : m_nNameTreeEntries(0)
Junxiao Shi65f1a712014-11-20 14:59:36 -070035 , m_nFibEntries(0)
36 , m_nPitEntries(0)
37 , m_nMeasurementsEntries(0)
38 , m_nCsEntries(0)
39 , m_nInInterests(0)
Junxiao Shi9a53d782017-04-04 20:09:57 +000040 , m_nInData(0)
Eric Newberry95bd96a2015-09-04 23:34:22 -070041 , m_nInNacks(0)
Junxiao Shi65f1a712014-11-20 14:59:36 -070042 , m_nOutInterests(0)
Junxiao Shi9a53d782017-04-04 20:09:57 +000043 , m_nOutData(0)
Eric Newberry95bd96a2015-09-04 23:34:22 -070044 , m_nOutNacks(0)
Ju Pandca56ea2018-10-24 06:20:44 +000045 , m_nSatisfiedInterests(0)
46 , m_nUnsatisfiedInterests(0)
Junxiao Shi65f1a712014-11-20 14:59:36 -070047{
48}
49
50ForwarderStatus::ForwarderStatus(const Block& payload)
51{
52 this->wireDecode(payload);
53}
54
Alexander Afanasyev74633892015-02-08 18:08:46 -080055template<encoding::Tag TAG>
Junxiao Shi65f1a712014-11-20 14:59:36 -070056size_t
Alexander Afanasyev74633892015-02-08 18:08:46 -080057ForwarderStatus::wireEncode(EncodingImpl<TAG>& encoder) const
Junxiao Shi65f1a712014-11-20 14:59:36 -070058{
59 size_t totalLength = 0;
60
Ju Pandca56ea2018-10-24 06:20:44 +000061 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NUnsatisfiedInterests, m_nUnsatisfiedInterests);
62 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NSatisfiedInterests, m_nSatisfiedInterests);
Junxiao Shi9a53d782017-04-04 20:09:57 +000063 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NOutNacks, m_nOutNacks);
64 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NOutData, m_nOutData);
65 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NOutInterests, m_nOutInterests);
66 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NInNacks, m_nInNacks);
67 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NInData, m_nInData);
68 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NInInterests, m_nInInterests);
69 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NCsEntries, m_nCsEntries);
70 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NMeasurementsEntries, m_nMeasurementsEntries);
71 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NPitEntries, m_nPitEntries);
72 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NFibEntries, m_nFibEntries);
73 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::NNameTreeEntries, m_nNameTreeEntries);
Junxiao Shi65f1a712014-11-20 14:59:36 -070074 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::CurrentTimestamp,
75 time::toUnixTimestamp(m_currentTimestamp).count());
76 totalLength += prependNonNegativeIntegerBlock(encoder, tlv::nfd::StartTimestamp,
77 time::toUnixTimestamp(m_startTimestamp).count());
Junxiao Shi5d75fd92017-08-08 18:09:20 +000078 totalLength += prependStringBlock(encoder, tlv::nfd::NfdVersion, m_nfdVersion);
Junxiao Shi65f1a712014-11-20 14:59:36 -070079
80 totalLength += encoder.prependVarNumber(totalLength);
81 totalLength += encoder.prependVarNumber(tlv::Content);
82 return totalLength;
83}
84
Davide Pesavento88a0d812017-08-19 21:31:42 -040085NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ForwarderStatus);
Junxiao Shi65f1a712014-11-20 14:59:36 -070086
87const Block&
88ForwarderStatus::wireEncode() const
89{
90 if (m_wire.hasWire())
91 return m_wire;
92
93 EncodingEstimator estimator;
94 size_t estimatedSize = wireEncode(estimator);
95
96 EncodingBuffer buffer(estimatedSize, 0);
97 wireEncode(buffer);
98
99 m_wire = buffer.block();
100 return m_wire;
101}
102
103void
104ForwarderStatus::wireDecode(const Block& block)
105{
106 if (block.type() != tlv::Content) {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700107 BOOST_THROW_EXCEPTION(Error("expecting Content block for Status payload"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700108 }
109 m_wire = block;
110 m_wire.parse();
111 Block::element_const_iterator val = m_wire.elements_begin();
112
113 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NfdVersion) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000114 m_nfdVersion = readString(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700115 ++val;
116 }
117 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700118 BOOST_THROW_EXCEPTION(Error("missing required NfdVersion field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700119 }
120
121 if (val != m_wire.elements_end() && val->type() == tlv::nfd::StartTimestamp) {
122 m_startTimestamp = time::fromUnixTimestamp(time::milliseconds(readNonNegativeInteger(*val)));
123 ++val;
124 }
125 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700126 BOOST_THROW_EXCEPTION(Error("missing required StartTimestamp field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700127 }
128
129 if (val != m_wire.elements_end() && val->type() == tlv::nfd::CurrentTimestamp) {
130 m_currentTimestamp = time::fromUnixTimestamp(time::milliseconds(readNonNegativeInteger(*val)));
131 ++val;
132 }
133 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700134 BOOST_THROW_EXCEPTION(Error("missing required CurrentTimestamp field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700135 }
136
137 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NNameTreeEntries) {
Junxiao Shi643b7f52018-07-18 08:05:01 -0600138 m_nNameTreeEntries = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700139 ++val;
140 }
141 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700142 BOOST_THROW_EXCEPTION(Error("missing required NNameTreeEntries field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700143 }
144
145 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NFibEntries) {
Junxiao Shi643b7f52018-07-18 08:05:01 -0600146 m_nFibEntries = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700147 ++val;
148 }
149 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700150 BOOST_THROW_EXCEPTION(Error("missing required NFibEntries field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700151 }
152
153 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NPitEntries) {
Junxiao Shi643b7f52018-07-18 08:05:01 -0600154 m_nPitEntries = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700155 ++val;
156 }
157 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700158 BOOST_THROW_EXCEPTION(Error("missing required NPitEntries field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700159 }
160
161 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NMeasurementsEntries) {
Junxiao Shi643b7f52018-07-18 08:05:01 -0600162 m_nMeasurementsEntries = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700163 ++val;
164 }
165 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700166 BOOST_THROW_EXCEPTION(Error("missing required NMeasurementsEntries field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700167 }
168
169 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NCsEntries) {
Junxiao Shi643b7f52018-07-18 08:05:01 -0600170 m_nCsEntries = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700171 ++val;
172 }
173 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700174 BOOST_THROW_EXCEPTION(Error("missing required NCsEntries field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700175 }
176
177 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NInInterests) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000178 m_nInInterests = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700179 ++val;
180 }
181 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700182 BOOST_THROW_EXCEPTION(Error("missing required NInInterests field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700183 }
184
Junxiao Shi9a53d782017-04-04 20:09:57 +0000185 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NInData) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000186 m_nInData = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700187 ++val;
188 }
189 else {
Junxiao Shi9a53d782017-04-04 20:09:57 +0000190 BOOST_THROW_EXCEPTION(Error("missing required NInData field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700191 }
192
Eric Newberry95bd96a2015-09-04 23:34:22 -0700193 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NInNacks) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000194 m_nInNacks = readNonNegativeInteger(*val);
Eric Newberry95bd96a2015-09-04 23:34:22 -0700195 ++val;
196 }
197 else {
198 BOOST_THROW_EXCEPTION(Error("missing required NInNacks field"));
199 }
200
Junxiao Shi65f1a712014-11-20 14:59:36 -0700201 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NOutInterests) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000202 m_nOutInterests = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700203 ++val;
204 }
205 else {
Spyridon Mastorakis0d2ed2e2015-07-27 19:09:12 -0700206 BOOST_THROW_EXCEPTION(Error("missing required NOutInterests field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700207 }
208
Junxiao Shi9a53d782017-04-04 20:09:57 +0000209 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NOutData) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000210 m_nOutData = readNonNegativeInteger(*val);
Junxiao Shi65f1a712014-11-20 14:59:36 -0700211 ++val;
212 }
213 else {
Junxiao Shi9a53d782017-04-04 20:09:57 +0000214 BOOST_THROW_EXCEPTION(Error("missing required NOutData field"));
Junxiao Shi65f1a712014-11-20 14:59:36 -0700215 }
Eric Newberry95bd96a2015-09-04 23:34:22 -0700216
217 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NOutNacks) {
Junxiao Shi5d75fd92017-08-08 18:09:20 +0000218 m_nOutNacks = readNonNegativeInteger(*val);
Eric Newberry95bd96a2015-09-04 23:34:22 -0700219 ++val;
220 }
221 else {
Junxiao Shi9a53d782017-04-04 20:09:57 +0000222 BOOST_THROW_EXCEPTION(Error("missing required NOutNacks field"));
Eric Newberry95bd96a2015-09-04 23:34:22 -0700223 }
Ju Pandca56ea2018-10-24 06:20:44 +0000224
225 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NSatisfiedInterests) {
226 m_nSatisfiedInterests = readNonNegativeInteger(*val);
227 ++val;
228 }
229 else {
230 BOOST_THROW_EXCEPTION(Error("missing required NSatisfiedInterests field"));
231 }
232
233 if (val != m_wire.elements_end() && val->type() == tlv::nfd::NUnsatisfiedInterests) {
234 m_nUnsatisfiedInterests = readNonNegativeInteger(*val);
235 ++val;
236 }
237 else {
238 BOOST_THROW_EXCEPTION(Error("missing required NUnsatisfiedInterests field"));
239 }
Junxiao Shi65f1a712014-11-20 14:59:36 -0700240}
241
242ForwarderStatus&
Hila Ben Abraham23f9e782014-12-02 02:21:34 -0600243ForwarderStatus::setNfdVersion(const std::string& nfdVersion)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700244{
245 m_wire.reset();
246 m_nfdVersion = nfdVersion;
247 return *this;
248}
249
250ForwarderStatus&
251ForwarderStatus::setStartTimestamp(const time::system_clock::TimePoint& startTimestamp)
252{
253 m_wire.reset();
254 m_startTimestamp = startTimestamp;
255 return *this;
256}
257
258ForwarderStatus&
259ForwarderStatus::setCurrentTimestamp(const time::system_clock::TimePoint& currentTimestamp)
260{
261 m_wire.reset();
262 m_currentTimestamp = currentTimestamp;
263 return *this;
264}
265
266ForwarderStatus&
Junxiao Shi643b7f52018-07-18 08:05:01 -0600267ForwarderStatus::setNNameTreeEntries(uint64_t nNameTreeEntries)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700268{
269 m_wire.reset();
270 m_nNameTreeEntries = nNameTreeEntries;
271 return *this;
272}
273
274ForwarderStatus&
Junxiao Shi643b7f52018-07-18 08:05:01 -0600275ForwarderStatus::setNFibEntries(uint64_t nFibEntries)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700276{
277 m_wire.reset();
278 m_nFibEntries = nFibEntries;
279 return *this;
280}
281
282ForwarderStatus&
Junxiao Shi643b7f52018-07-18 08:05:01 -0600283ForwarderStatus::setNPitEntries(uint64_t nPitEntries)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700284{
285 m_wire.reset();
286 m_nPitEntries = nPitEntries;
287 return *this;
288}
289
290ForwarderStatus&
Junxiao Shi643b7f52018-07-18 08:05:01 -0600291ForwarderStatus::setNMeasurementsEntries(uint64_t nMeasurementsEntries)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700292{
293 m_wire.reset();
294 m_nMeasurementsEntries = nMeasurementsEntries;
295 return *this;
296}
297
298ForwarderStatus&
Junxiao Shi643b7f52018-07-18 08:05:01 -0600299ForwarderStatus::setNCsEntries(uint64_t nCsEntries)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700300{
301 m_wire.reset();
302 m_nCsEntries = nCsEntries;
303 return *this;
304}
305
306ForwarderStatus&
307ForwarderStatus::setNInInterests(uint64_t nInInterests)
308{
309 m_wire.reset();
310 m_nInInterests = nInInterests;
311 return *this;
312}
313
314ForwarderStatus&
Junxiao Shi9a53d782017-04-04 20:09:57 +0000315ForwarderStatus::setNInData(uint64_t nInData)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700316{
317 m_wire.reset();
Junxiao Shi9a53d782017-04-04 20:09:57 +0000318 m_nInData = nInData;
Junxiao Shi65f1a712014-11-20 14:59:36 -0700319 return *this;
320}
321
322ForwarderStatus&
Eric Newberry95bd96a2015-09-04 23:34:22 -0700323ForwarderStatus::setNInNacks(uint64_t nInNacks)
324{
325 m_wire.reset();
326 m_nInNacks = nInNacks;
327 return *this;
328}
329
330ForwarderStatus&
Junxiao Shi65f1a712014-11-20 14:59:36 -0700331ForwarderStatus::setNOutInterests(uint64_t nOutInterests)
332{
333 m_wire.reset();
334 m_nOutInterests = nOutInterests;
335 return *this;
336}
337
338ForwarderStatus&
Junxiao Shi9a53d782017-04-04 20:09:57 +0000339ForwarderStatus::setNOutData(uint64_t nOutData)
Junxiao Shi65f1a712014-11-20 14:59:36 -0700340{
341 m_wire.reset();
Junxiao Shi9a53d782017-04-04 20:09:57 +0000342 m_nOutData = nOutData;
Junxiao Shi65f1a712014-11-20 14:59:36 -0700343 return *this;
344}
345
Eric Newberry95bd96a2015-09-04 23:34:22 -0700346ForwarderStatus&
347ForwarderStatus::setNOutNacks(uint64_t nOutNacks)
348{
349 m_wire.reset();
350 m_nOutNacks = nOutNacks;
351 return *this;
352}
353
Ju Pandca56ea2018-10-24 06:20:44 +0000354ForwarderStatus&
355ForwarderStatus::setNSatisfiedInterests(uint64_t nSatisfiedInterests)
356{
357 m_wire.reset();
358 m_nSatisfiedInterests = nSatisfiedInterests;
359 return *this;
360}
361
362ForwarderStatus&
363ForwarderStatus::setNUnsatisfiedInterests(uint64_t nUnsatisfiedInterests)
364{
365 m_wire.reset();
366 m_nUnsatisfiedInterests = nUnsatisfiedInterests;
367 return *this;
368}
369
Davide Pesavento25e3d8c2017-02-08 22:17:46 -0500370bool
371operator==(const ForwarderStatus& a, const ForwarderStatus& b)
372{
373 return a.getNfdVersion() == b.getNfdVersion() &&
374 a.getStartTimestamp() == b.getStartTimestamp() &&
375 a.getCurrentTimestamp() == b.getCurrentTimestamp() &&
376 a.getNNameTreeEntries() == b.getNNameTreeEntries() &&
377 a.getNFibEntries() == b.getNFibEntries() &&
378 a.getNPitEntries() == b.getNPitEntries() &&
379 a.getNMeasurementsEntries() == b.getNMeasurementsEntries() &&
380 a.getNCsEntries() == b.getNCsEntries() &&
381 a.getNInInterests() == b.getNInInterests() &&
Junxiao Shi9a53d782017-04-04 20:09:57 +0000382 a.getNInData() == b.getNInData() &&
Davide Pesavento25e3d8c2017-02-08 22:17:46 -0500383 a.getNInNacks() == b.getNInNacks() &&
384 a.getNOutInterests() == b.getNOutInterests() &&
Junxiao Shi9a53d782017-04-04 20:09:57 +0000385 a.getNOutData() == b.getNOutData() &&
Ju Pandca56ea2018-10-24 06:20:44 +0000386 a.getNOutNacks() == b.getNOutNacks() &&
387 a.getNSatisfiedInterests() == b.getNSatisfiedInterests() &&
388 a.getNUnsatisfiedInterests() == b.getNUnsatisfiedInterests();
Davide Pesavento25e3d8c2017-02-08 22:17:46 -0500389}
390
391std::ostream&
392operator<<(std::ostream& os, const ForwarderStatus& status)
393{
394 os << "GeneralStatus(NfdVersion: " << status.getNfdVersion() << ",\n"
395 << " StartTimestamp: " << status.getStartTimestamp() << ",\n"
396 << " CurrentTimestamp: " << status.getCurrentTimestamp() << ",\n"
397 << " Counters: {NameTreeEntries: " << status.getNNameTreeEntries() << ",\n"
398 << " FibEntries: " << status.getNFibEntries() << ",\n"
399 << " PitEntries: " << status.getNPitEntries() << ",\n"
400 << " MeasurementsEntries: " << status.getNMeasurementsEntries() << ",\n"
401 << " CsEntries: " << status.getNCsEntries() << ",\n"
402 << " Interests: {in: " << status.getNInInterests() << ", "
403 << "out: " << status.getNOutInterests() << "},\n"
Junxiao Shi9a53d782017-04-04 20:09:57 +0000404 << " Data: {in: " << status.getNInData() << ", "
405 << "out: " << status.getNOutData() << "},\n"
Davide Pesavento25e3d8c2017-02-08 22:17:46 -0500406 << " Nacks: {in: " << status.getNInNacks() << ", "
Ju Pandca56ea2018-10-24 06:20:44 +0000407 << "out: " << status.getNOutNacks() << "},\n"
408 << " SatisfiedInterests: " << status.getNSatisfiedInterests() << ",\n"
409 << " UnsatisfiedInterests: " << status.getNUnsatisfiedInterests() << "}\n"
Davide Pesavento25e3d8c2017-02-08 22:17:46 -0500410 << " )";
411
412 return os;
413}
414
Junxiao Shi65f1a712014-11-20 14:59:36 -0700415} // namespace nfd
416} // namespace ndn