NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
control-parameters.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013-2018 Regents of the University of California.
4  *
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 
22 #ifndef NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
23 #define NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
24 
25 #include "ndn-cxx/name.hpp"
28 #include "ndn-cxx/util/time.hpp"
29 
30 namespace ndn {
31 namespace nfd {
32 
54 };
55 
57  "Name",
58  "FaceId",
59  "Uri",
60  "LocalUri",
61  "Origin",
62  "Cost",
63  "Capacity",
64  "Count",
65  "Flags",
66  "Mask",
67  "Strategy",
68  "ExpirationPeriod",
69  "FacePersistency",
70  "BaseCongestionMarkingInterval",
71  "DefaultCongestionThreshold",
72  "Mtu"
73 };
74 
82 {
83 public:
84  class Error : public tlv::Error
85  {
86  public:
87  using tlv::Error::Error;
88  };
89 
91 
92  explicit
93  ControlParameters(const Block& block);
94 
95  template<encoding::Tag TAG>
96  size_t
97  wireEncode(EncodingImpl<TAG>& encoder) const;
98 
99  Block
100  wireEncode() const final;
101 
102  void
103  wireDecode(const Block& wire) final;
104 
105 public: // getters & setters
106  bool
107  hasName() const
108  {
109  return m_hasFields[CONTROL_PARAMETER_NAME];
110  }
111 
112  const Name&
113  getName() const
114  {
115  BOOST_ASSERT(this->hasName());
116  return m_name;
117  }
118 
120  setName(const Name& name)
121  {
122  m_wire.reset();
123  m_name = name;
124  m_hasFields[CONTROL_PARAMETER_NAME] = true;
125  return *this;
126  }
127 
130  {
131  m_wire.reset();
132  m_hasFields[CONTROL_PARAMETER_NAME] = false;
133  return *this;
134  }
135 
136  bool
137  hasFaceId() const
138  {
139  return m_hasFields[CONTROL_PARAMETER_FACE_ID];
140  }
141 
142  uint64_t
143  getFaceId() const
144  {
145  BOOST_ASSERT(this->hasFaceId());
146  return m_faceId;
147  }
148 
150  setFaceId(uint64_t faceId)
151  {
152  m_wire.reset();
153  m_faceId = faceId;
154  m_hasFields[CONTROL_PARAMETER_FACE_ID] = true;
155  return *this;
156  }
157 
160  {
161  m_wire.reset();
162  m_hasFields[CONTROL_PARAMETER_FACE_ID] = false;
163  return *this;
164  }
165 
166  bool
167  hasUri() const
168  {
169  return m_hasFields[CONTROL_PARAMETER_URI];
170  }
171 
172  const std::string&
173  getUri() const
174  {
175  BOOST_ASSERT(this->hasUri());
176  return m_uri;
177  }
178 
180  setUri(const std::string& uri)
181  {
182  m_wire.reset();
183  m_uri = uri;
184  m_hasFields[CONTROL_PARAMETER_URI] = true;
185  return *this;
186  }
187 
190  {
191  m_wire.reset();
192  m_hasFields[CONTROL_PARAMETER_URI] = false;
193  return *this;
194  }
195 
196  bool
197  hasLocalUri() const
198  {
199  return m_hasFields[CONTROL_PARAMETER_LOCAL_URI];
200  }
201 
202  const std::string&
203  getLocalUri() const
204  {
205  BOOST_ASSERT(this->hasLocalUri());
206  return m_localUri;
207  }
208 
210  setLocalUri(const std::string& localUri)
211  {
212  m_wire.reset();
213  m_localUri = localUri;
214  m_hasFields[CONTROL_PARAMETER_LOCAL_URI] = true;
215  return *this;
216  }
217 
220  {
221  m_wire.reset();
222  m_hasFields[CONTROL_PARAMETER_LOCAL_URI] = false;
223  return *this;
224  }
225 
226  bool
227  hasOrigin() const
228  {
229  return m_hasFields[CONTROL_PARAMETER_ORIGIN];
230  }
231 
233  getOrigin() const
234  {
235  BOOST_ASSERT(this->hasOrigin());
236  return m_origin;
237  }
238 
241  {
242  m_wire.reset();
243  m_origin = origin;
244  m_hasFields[CONTROL_PARAMETER_ORIGIN] = true;
245  return *this;
246  }
247 
250  {
251  m_wire.reset();
252  m_hasFields[CONTROL_PARAMETER_ORIGIN] = false;
253  return *this;
254  }
255 
256  bool
257  hasCost() const
258  {
259  return m_hasFields[CONTROL_PARAMETER_COST];
260  }
261 
262  uint64_t
263  getCost() const
264  {
265  BOOST_ASSERT(this->hasCost());
266  return m_cost;
267  }
268 
270  setCost(uint64_t cost)
271  {
272  m_wire.reset();
273  m_cost = cost;
274  m_hasFields[CONTROL_PARAMETER_COST] = true;
275  return *this;
276  }
277 
280  {
281  m_wire.reset();
282  m_hasFields[CONTROL_PARAMETER_COST] = false;
283  return *this;
284  }
285 
286  bool
287  hasCapacity() const
288  {
289  return m_hasFields[CONTROL_PARAMETER_CAPACITY];
290  }
291 
292  uint64_t
293  getCapacity() const
294  {
295  BOOST_ASSERT(this->hasCapacity());
296  return m_capacity;
297  }
298 
300  setCapacity(uint64_t capacity)
301  {
302  m_wire.reset();
303  m_capacity = capacity;
304  m_hasFields[CONTROL_PARAMETER_CAPACITY] = true;
305  return *this;
306  }
307 
310  {
311  m_wire.reset();
312  m_hasFields[CONTROL_PARAMETER_CAPACITY] = false;
313  return *this;
314  }
315 
316  bool
317  hasCount() const
318  {
319  return m_hasFields[CONTROL_PARAMETER_COUNT];
320  }
321 
322  uint64_t
323  getCount() const
324  {
325  BOOST_ASSERT(this->hasCount());
326  return m_count;
327  }
328 
330  setCount(uint64_t count)
331  {
332  m_wire.reset();
333  m_count = count;
334  m_hasFields[CONTROL_PARAMETER_COUNT] = true;
335  return *this;
336  }
337 
340  {
341  m_wire.reset();
342  m_hasFields[CONTROL_PARAMETER_COUNT] = false;
343  return *this;
344  }
345 
346  bool
347  hasFlags() const
348  {
349  return m_hasFields[CONTROL_PARAMETER_FLAGS];
350  }
351 
352  uint64_t
353  getFlags() const
354  {
355  BOOST_ASSERT(this->hasFlags());
356  return m_flags;
357  }
358 
360  setFlags(uint64_t flags)
361  {
362  m_wire.reset();
363  m_flags = flags;
364  m_hasFields[CONTROL_PARAMETER_FLAGS] = true;
365  return *this;
366  }
367 
370  {
371  m_wire.reset();
372  m_hasFields[CONTROL_PARAMETER_FLAGS] = false;
373  return *this;
374  }
375 
376  bool
377  hasMask() const
378  {
379  return m_hasFields[CONTROL_PARAMETER_MASK];
380  }
381 
382  uint64_t
383  getMask() const
384  {
385  BOOST_ASSERT(this->hasMask());
386  return m_mask;
387  }
388 
390  setMask(uint64_t mask)
391  {
392  m_wire.reset();
393  m_mask = mask;
394  m_hasFields[CONTROL_PARAMETER_MASK] = true;
395  return *this;
396  }
397 
400  {
401  m_wire.reset();
402  m_hasFields[CONTROL_PARAMETER_MASK] = false;
403  return *this;
404  }
405 
406  bool
407  hasStrategy() const
408  {
409  return m_hasFields[CONTROL_PARAMETER_STRATEGY];
410  }
411 
412  const Name&
413  getStrategy() const
414  {
415  BOOST_ASSERT(this->hasStrategy());
416  return m_strategy;
417  }
418 
420  setStrategy(const Name& strategy)
421  {
422  m_wire.reset();
423  m_strategy = strategy;
424  m_hasFields[CONTROL_PARAMETER_STRATEGY] = true;
425  return *this;
426  }
427 
430  {
431  m_wire.reset();
432  m_hasFields[CONTROL_PARAMETER_STRATEGY] = false;
433  return *this;
434  }
435 
436  bool
438  {
439  return m_hasFields[CONTROL_PARAMETER_EXPIRATION_PERIOD];
440  }
441 
442  const time::milliseconds&
444  {
445  BOOST_ASSERT(this->hasExpirationPeriod());
446  return m_expirationPeriod;
447  }
448 
450  setExpirationPeriod(const time::milliseconds& expirationPeriod)
451  {
452  m_wire.reset();
453  m_expirationPeriod = expirationPeriod;
454  m_hasFields[CONTROL_PARAMETER_EXPIRATION_PERIOD] = true;
455  return *this;
456  }
457 
460  {
461  m_wire.reset();
462  m_hasFields[CONTROL_PARAMETER_EXPIRATION_PERIOD] = false;
463  return *this;
464  }
465 
466  bool
468  {
469  return m_hasFields[CONTROL_PARAMETER_FACE_PERSISTENCY];
470  }
471 
474  {
475  BOOST_ASSERT(this->hasFacePersistency());
476  return m_facePersistency;
477  }
478 
481  {
482  m_wire.reset();
483  m_facePersistency = persistency;
484  m_hasFields[CONTROL_PARAMETER_FACE_PERSISTENCY] = true;
485  return *this;
486  }
487 
490  {
491  m_wire.reset();
492  m_hasFields[CONTROL_PARAMETER_FACE_PERSISTENCY] = false;
493  return *this;
494  }
495 
496  bool
498  {
500  }
501 
502  time::nanoseconds
504  {
505  BOOST_ASSERT(this->hasBaseCongestionMarkingInterval());
506  return m_baseCongestionMarkingInterval;
507  }
508 
510  setBaseCongestionMarkingInterval(time::nanoseconds interval)
511  {
512  m_wire.reset();
513  m_baseCongestionMarkingInterval = interval;
515  return *this;
516  }
517 
520  {
521  m_wire.reset();
523  return *this;
524  }
525 
526  bool
528  {
530  }
531 
534  uint64_t
536  {
537  BOOST_ASSERT(this->hasDefaultCongestionThreshold());
538  return m_defaultCongestionThreshold;
539  }
540 
544  setDefaultCongestionThreshold(uint64_t threshold)
545  {
546  m_wire.reset();
547  m_defaultCongestionThreshold = threshold;
549  return *this;
550  }
551 
554  {
555  m_wire.reset();
557  return *this;
558  }
559 
560  bool
561  hasMtu() const
562  {
563  return m_hasFields[CONTROL_PARAMETER_MTU];
564  }
565 
570  uint64_t
571  getMtu() const
572  {
573  BOOST_ASSERT(this->hasMtu());
574  return m_mtu;
575  }
576 
582  setMtu(uint64_t mtu)
583  {
584  m_wire.reset();
585  m_mtu = mtu;
586  m_hasFields[CONTROL_PARAMETER_MTU] = true;
587  return *this;
588  }
589 
592  {
593  m_wire.reset();
594  m_hasFields[CONTROL_PARAMETER_MTU] = false;
595  return *this;
596  }
597 
598  const std::vector<bool>&
600  {
601  return m_hasFields;
602  }
603 
604 public: // Flags and Mask helpers
609  bool
610  hasFlagBit(size_t bit) const;
611 
616  bool
617  getFlagBit(size_t bit) const;
618 
626  setFlagBit(size_t bit, bool value, bool wantMask = true);
627 
634  unsetFlagBit(size_t bit);
635 
636 private: // fields
637  std::vector<bool> m_hasFields;
638 
639  Name m_name;
640  uint64_t m_faceId;
641  std::string m_uri;
642  std::string m_localUri;
643  RouteOrigin m_origin;
644  uint64_t m_cost;
645  uint64_t m_capacity;
646  uint64_t m_count;
647  uint64_t m_flags;
648  uint64_t m_mask;
649  Name m_strategy;
650  time::milliseconds m_expirationPeriod;
651  FacePersistency m_facePersistency;
652  time::nanoseconds m_baseCongestionMarkingInterval;
653  uint64_t m_defaultCongestionThreshold;
654  uint64_t m_mtu;
655 
656 private:
657  mutable Block m_wire;
658 };
659 
661 
662 std::ostream&
663 operator<<(std::ostream& os, const ControlParameters& parameters);
664 
665 } // namespace nfd
666 } // namespace ndn
667 
668 #endif // NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
ndn::nfd::ControlParameters::setCapacity
ControlParameters & setCapacity(uint64_t capacity)
Definition: control-parameters.hpp:300
ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL
@ CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL
Definition: control-parameters.hpp:50
ndn::nfd::CONTROL_PARAMETER_ORIGIN
@ CONTROL_PARAMETER_ORIGIN
Definition: control-parameters.hpp:41
ndn::nfd::ControlParameters::unsetCost
ControlParameters & unsetCost()
Definition: control-parameters.hpp:279
ndn::nfd::ControlParameters::setDefaultCongestionThreshold
ControlParameters & setDefaultCongestionThreshold(uint64_t threshold)
set default congestion threshold (measured in bytes)
Definition: control-parameters.hpp:544
ndn::nfd::CONTROL_PARAMETER_URI
@ CONTROL_PARAMETER_URI
Definition: control-parameters.hpp:39
ndn::nfd::ControlParameters::Error
Definition: control-parameters.hpp:85
ndn::nfd::CONTROL_PARAMETER_COST
@ CONTROL_PARAMETER_COST
Definition: control-parameters.hpp:42
control-parameters.hpp
ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
ndn::nfd::ControlParameters::setFacePersistency
ControlParameters & setFacePersistency(FacePersistency persistency)
Definition: control-parameters.hpp:480
ndn::nfd::ControlParameters::unsetExpirationPeriod
ControlParameters & unsetExpirationPeriod()
Definition: control-parameters.hpp:459
ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD
@ CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD
Definition: control-parameters.hpp:51
ndn::nfd::CONTROL_PARAMETER_MTU
@ CONTROL_PARAMETER_MTU
Definition: control-parameters.hpp:52
ndn::nfd::ControlParameters::hasUri
bool hasUri() const
Definition: control-parameters.hpp:167
ndn::nfd::ControlParameters::unsetLocalUri
ControlParameters & unsetLocalUri()
Definition: control-parameters.hpp:219
ndn::nfd::ControlParameters::unsetStrategy
ControlParameters & unsetStrategy()
Definition: control-parameters.hpp:429
ndn::nfd::ControlParameters::setFlags
ControlParameters & setFlags(uint64_t flags)
Definition: control-parameters.hpp:360
ndn::nfd::CONTROL_PARAMETER_LOCAL_URI
@ CONTROL_PARAMETER_LOCAL_URI
Definition: control-parameters.hpp:40
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition: nfd-constants.cpp:36
ndn::nfd::ControlParameters::unsetBaseCongestionMarkingInterval
ControlParameters & unsetBaseCongestionMarkingInterval()
Definition: control-parameters.hpp:519
ndn::nfd::ControlParameters::getMask
uint64_t getMask() const
Definition: control-parameters.hpp:383
ndn::nfd::ControlParameters::unsetMtu
ControlParameters & unsetMtu()
Definition: control-parameters.hpp:591
ndn::nfd::ControlParameters::wireDecode
void wireDecode(const Block &wire) final
Definition: control-parameters.cpp:130
ndn::nfd::ControlParameters::unsetMask
ControlParameters & unsetMask()
Definition: control-parameters.hpp:399
ndn::nfd::ControlParameters::unsetDefaultCongestionThreshold
ControlParameters & unsetDefaultCongestionThreshold()
Definition: control-parameters.hpp:553
ndn::nfd::ControlParameters::unsetCapacity
ControlParameters & unsetCapacity()
Definition: control-parameters.hpp:309
ndn::nfd::CONTROL_PARAMETER_NAME
@ CONTROL_PARAMETER_NAME
Definition: control-parameters.hpp:37
ndn::nfd::ControlParameters::getExpirationPeriod
const time::milliseconds & getExpirationPeriod() const
Definition: control-parameters.hpp:443
ndn::nfd::ControlParameters::unsetFlagBit
ControlParameters & unsetFlagBit(size_t bit)
disable a bit in Mask
Definition: control-parameters.cpp:297
ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY
@ CONTROL_PARAMETER_FACE_PERSISTENCY
Definition: control-parameters.hpp:49
name.hpp
ndn::nfd::ControlParameters::getCost
uint64_t getCost() const
Definition: control-parameters.hpp:263
ndn::nfd::ControlParameters::hasLocalUri
bool hasLocalUri() const
Definition: control-parameters.hpp:197
ndn::nfd::CONTROL_PARAMETER_FIELD
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
Definition: control-parameters.hpp:56
ndn::nfd::ControlParameters::hasFlagBit
bool hasFlagBit(size_t bit) const
Definition: control-parameters.cpp:244
ndn::Block::reset
void reset() noexcept
Reset the Block to a default-constructed state.
Definition: block.cpp:250
ndn::nfd::CONTROL_PARAMETER_FLAGS
@ CONTROL_PARAMETER_FLAGS
Definition: control-parameters.hpp:45
ndn::mgmt::ControlParameters
base class for a struct that contains ControlCommand parameters
Definition: control-parameters.hpp:33
ndn::nfd::RouteOrigin
RouteOrigin
Definition: nfd-constants.hpp:99
ndn::nfd::CONTROL_PARAMETER_UBOUND
@ CONTROL_PARAMETER_UBOUND
Definition: control-parameters.hpp:53
ndn::nfd::CONTROL_PARAMETER_MASK
@ CONTROL_PARAMETER_MASK
Definition: control-parameters.hpp:46
ndn::nfd::CONTROL_PARAMETER_FACE_ID
@ CONTROL_PARAMETER_FACE_ID
Definition: control-parameters.hpp:38
ndn::nfd::ControlParameters::getPresentFields
const std::vector< bool > & getPresentFields() const
Definition: control-parameters.hpp:599
ndn::nfd::FacePersistency
FacePersistency
Definition: nfd-constants.hpp:45
ndn::nfd::ControlParameters::setFlagBit
ControlParameters & setFlagBit(size_t bit, bool value, bool wantMask=true)
set a bit in Flags
Definition: control-parameters.cpp:272
ndn::nfd::ControlParameters::unsetFlags
ControlParameters & unsetFlags()
Definition: control-parameters.hpp:369
ndn::nfd::ControlParameters::hasOrigin
bool hasOrigin() const
Definition: control-parameters.hpp:227
ndn::Name
Represents an absolute name.
Definition: name.hpp:44
ndn::nfd::ControlParameters::getCount
uint64_t getCount() const
Definition: control-parameters.hpp:323
ndn::nfd::ControlParameters::setUri
ControlParameters & setUri(const std::string &uri)
Definition: control-parameters.hpp:180
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
ndn::nfd::CONTROL_PARAMETER_COUNT
@ CONTROL_PARAMETER_COUNT
Definition: control-parameters.hpp:44
ndn::nfd::CONTROL_PARAMETER_STRATEGY
@ CONTROL_PARAMETER_STRATEGY
Definition: control-parameters.hpp:47
ndn::nfd::ControlParameters::getLocalUri
const std::string & getLocalUri() const
Definition: control-parameters.hpp:203
ndn::nfd::ControlParameters::unsetFacePersistency
ControlParameters & unsetFacePersistency()
Definition: control-parameters.hpp:489
ndn::nfd::ControlParameterField
ControlParameterField
Definition: control-parameters.hpp:36
ndn::nfd::ControlParameters::getBaseCongestionMarkingInterval
time::nanoseconds getBaseCongestionMarkingInterval() const
Definition: control-parameters.hpp:503
ndn::nfd::ControlParameters::setMask
ControlParameters & setMask(uint64_t mask)
Definition: control-parameters.hpp:390
ndn::nfd::ControlParameters::getUri
const std::string & getUri() const
Definition: control-parameters.hpp:173
ndn::nfd::ControlParameters::setFaceId
ControlParameters & setFaceId(uint64_t faceId)
Definition: control-parameters.hpp:150
ndn::nfd::ControlParameters::getMtu
uint64_t getMtu() const
get MTU (measured in bytes)
Definition: control-parameters.hpp:571
ndn::nfd::ControlParameters::setStrategy
ControlParameters & setStrategy(const Name &strategy)
Definition: control-parameters.hpp:420
ndn::nfd::ControlParameters::setExpirationPeriod
ControlParameters & setExpirationPeriod(const time::milliseconds &expirationPeriod)
Definition: control-parameters.hpp:450
ndn::nfd::ControlParameters::hasMtu
bool hasMtu() const
Definition: control-parameters.hpp:561
ndn::nfd::ControlParameters::hasCount
bool hasCount() const
Definition: control-parameters.hpp:317
ndn::nfd::ControlParameters::hasCapacity
bool hasCapacity() const
Definition: control-parameters.hpp:287
ndn::nfd::ControlParameters::setOrigin
ControlParameters & setOrigin(RouteOrigin origin)
Definition: control-parameters.hpp:240
ndn::nfd::ControlParameters::getFlagBit
bool getFlagBit(size_t bit) const
Definition: control-parameters.cpp:258
ndn::nfd::ControlParameters::hasExpirationPeriod
bool hasExpirationPeriod() const
Definition: control-parameters.hpp:437
ndn::nfd::ControlParameters::setName
ControlParameters & setName(const Name &name)
Definition: control-parameters.hpp:120
ndn::nfd::ControlParameters::hasStrategy
bool hasStrategy() const
Definition: control-parameters.hpp:407
ndn::nfd::ControlParameters::getFlags
uint64_t getFlags() const
Definition: control-parameters.hpp:353
ndn::nfd::CONTROL_PARAMETER_CAPACITY
@ CONTROL_PARAMETER_CAPACITY
Definition: control-parameters.hpp:43
ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD
@ CONTROL_PARAMETER_EXPIRATION_PERIOD
Definition: control-parameters.hpp:48
ndn::nfd::ControlParameters::ControlParameters
ControlParameters()
Definition: control-parameters.cpp:37
ndn::encoding::EncodingImpl
Definition: encoding-buffer-fwd.hpp:36
ndn::nfd::ControlParameters
represents parameters in a ControlCommand request or response
Definition: control-parameters.hpp:82
ndn::nfd::ControlParameters::hasBaseCongestionMarkingInterval
bool hasBaseCongestionMarkingInterval() const
Definition: control-parameters.hpp:497
ndn::nfd::ControlParameters::unsetUri
ControlParameters & unsetUri()
Definition: control-parameters.hpp:189
ndn::nfd::ControlParameters::getName
const Name & getName() const
Definition: control-parameters.hpp:113
ndn::nfd::ControlParameters::setLocalUri
ControlParameters & setLocalUri(const std::string &localUri)
Definition: control-parameters.hpp:210
ndn::nfd::ControlParameters::hasDefaultCongestionThreshold
bool hasDefaultCongestionThreshold() const
Definition: control-parameters.hpp:527
ndn::Block
Represents a TLV element of NDN packet format.
Definition: block.hpp:43
ndn::nfd::ControlParameters::unsetFaceId
ControlParameters & unsetFaceId()
Definition: control-parameters.hpp:159
ndn::nfd::ControlParameters::setCost
ControlParameters & setCost(uint64_t cost)
Definition: control-parameters.hpp:270
ndn::nfd::ControlParameters::hasFaceId
bool hasFaceId() const
Definition: control-parameters.hpp:137
ndn::nfd::ControlParameters::setMtu
ControlParameters & setMtu(uint64_t mtu)
set MTU (measured in bytes)
Definition: control-parameters.hpp:582
ndn::nfd::ControlParameters::hasCost
bool hasCost() const
Definition: control-parameters.hpp:257
ndn::nfd::ControlParameters::hasFacePersistency
bool hasFacePersistency() const
Definition: control-parameters.hpp:467
ndn::nfd::ControlParameters::unsetCount
ControlParameters & unsetCount()
Definition: control-parameters.hpp:339
ndn::name
Definition: name-component-types.hpp:33
ndn::nfd::ControlParameters::wireEncode
Block wireEncode() const final
Definition: control-parameters.cpp:114
ndn::nfd::ControlParameters::hasName
bool hasName() const
Definition: control-parameters.hpp:107
ndn::nfd::ControlParameters::unsetOrigin
ControlParameters & unsetOrigin()
Definition: control-parameters.hpp:249
ndn::nfd::ControlParameters::getCapacity
uint64_t getCapacity() const
Definition: control-parameters.hpp:293
ndn::nfd::ControlParameters::getOrigin
RouteOrigin getOrigin() const
Definition: control-parameters.hpp:233
time.hpp
ndn::nfd::ControlParameters::setCount
ControlParameters & setCount(uint64_t count)
Definition: control-parameters.hpp:330
ndn::tlv::Error
represents an error in TLV encoding or decoding
Definition: tlv.hpp:53
ndn::nfd::ControlParameters::getFaceId
uint64_t getFaceId() const
Definition: control-parameters.hpp:143
ndn::nfd::ControlParameters::hasMask
bool hasMask() const
Definition: control-parameters.hpp:377
nfd-constants.hpp
ndn::nfd::ControlParameters::getFacePersistency
FacePersistency getFacePersistency() const
Definition: control-parameters.hpp:473
ndn::nfd::ControlParameters::getDefaultCongestionThreshold
uint64_t getDefaultCongestionThreshold() const
get default congestion threshold (measured in bytes)
Definition: control-parameters.hpp:535
ndn::tlv::Error::Error
Error(const char *expectedType, uint32_t actualType)
Definition: tlv.cpp:27
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-strategy-choice-helper.hpp:34
ndn::nfd::ControlParameters::unsetName
ControlParameters & unsetName()
Definition: control-parameters.hpp:129
ndn::nfd::ControlParameters::getStrategy
const Name & getStrategy() const
Definition: control-parameters.hpp:413
ndn::nfd::ControlParameters::setBaseCongestionMarkingInterval
ControlParameters & setBaseCongestionMarkingInterval(time::nanoseconds interval)
Definition: control-parameters.hpp:510
ndn::nfd::ControlParameters::hasFlags
bool hasFlags() const
Definition: control-parameters.hpp:347