NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-constants.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_ENCODING_NFD_CONSTANTS_HPP
23
#define NDN_ENCODING_NFD_CONSTANTS_HPP
24
25
#include "../common.hpp"
26
27
namespace
ndn
{
28
namespace
nfd
{
29
30
static
const
uint64_t
INVALID_FACE_ID
= std::numeric_limits<uint64_t>::max();
31
34
enum
FaceScope
: uint8_t {
35
FACE_SCOPE_NONE
= std::numeric_limits<uint8_t>::max(),
38
FACE_SCOPE_NON_LOCAL
= 0,
41
FACE_SCOPE_LOCAL
= 1
42
};
43
44
std::ostream&
45
operator<<
(std::ostream& os,
FaceScope
faceScope);
46
49
enum
FacePersistency
: uint8_t {
50
FACE_PERSISTENCY_NONE
= std::numeric_limits<uint8_t>::max(),
53
FACE_PERSISTENCY_PERSISTENT
= 0,
56
FACE_PERSISTENCY_ON_DEMAND
= 1,
59
FACE_PERSISTENCY_PERMANENT
= 2
60
};
61
62
std::ostream&
63
operator<<
(std::ostream& os,
FacePersistency
facePersistency);
64
67
enum
LinkType
: uint8_t {
68
LINK_TYPE_NONE
= std::numeric_limits<uint8_t>::max(),
71
LINK_TYPE_POINT_TO_POINT
= 0,
74
LINK_TYPE_MULTI_ACCESS
= 1
75
};
76
77
std::ostream&
78
operator<<
(std::ostream& os,
LinkType
linkType);
79
82
enum
RouteOrigin
: uint16_t {
83
ROUTE_ORIGIN_NONE
= std::numeric_limits<uint16_t>::max(),
84
ROUTE_ORIGIN_APP
= 0,
85
ROUTE_ORIGIN_AUTOREG
= 64,
86
ROUTE_ORIGIN_CLIENT
= 65,
87
ROUTE_ORIGIN_AUTOCONF
= 66,
88
ROUTE_ORIGIN_NLSR
= 128,
89
ROUTE_ORIGIN_STATIC
= 255
90
};
91
92
std::ostream&
93
operator<<
(std::ostream& os,
RouteOrigin
routeOrigin);
94
97
enum
RouteFlags
{
98
ROUTE_FLAGS_NONE
= 0,
99
ROUTE_FLAG_CHILD_INHERIT
= 1,
100
ROUTE_FLAG_CAPTURE
= 2
101
};
102
103
std::ostream&
104
operator<<
(std::ostream& os,
RouteFlags
routeFlags);
105
106
}
// namespace nfd
107
}
// namespace ndn
108
109
#endif // NDN_ENCODING_NFD_CONSTANTS_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:67
ndn::nfd::FACE_PERSISTENCY_PERMANENT
face is permanent
Definition:
nfd-constants.hpp:59
ndn::nfd::ROUTE_ORIGIN_NLSR
Definition:
nfd-constants.hpp:88
ndn::nfd::LINK_TYPE_NONE
Definition:
nfd-constants.hpp:68
ndn::nfd::FACE_SCOPE_NON_LOCAL
face is non-local
Definition:
nfd-constants.hpp:38
ndn::nfd::ROUTE_ORIGIN_APP
Definition:
nfd-constants.hpp:84
ndn::nfd::LINK_TYPE_POINT_TO_POINT
link is point-to-point
Definition:
nfd-constants.hpp:71
ndn::nfd::ROUTE_ORIGIN_STATIC
Definition:
nfd-constants.hpp:89
ndn::nfd::RouteFlags
RouteFlags
Definition:
nfd-constants.hpp:97
ndn::nfd::LINK_TYPE_MULTI_ACCESS
link is multi-access
Definition:
nfd-constants.hpp:74
ndn::nfd::ROUTE_ORIGIN_AUTOREG
Definition:
nfd-constants.hpp:85
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:49
ndn::nfd::FaceScope
FaceScope
Definition:
nfd-constants.hpp:34
ndn::nfd::FACE_PERSISTENCY_NONE
Definition:
nfd-constants.hpp:50
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::nfd::ROUTE_FLAG_CAPTURE
Definition:
nfd-constants.hpp:100
ndn::nfd::FACE_SCOPE_NONE
Definition:
nfd-constants.hpp:35
ndn::nfd::ROUTE_ORIGIN_CLIENT
Definition:
nfd-constants.hpp:86
ndn::nfd::operator<<
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Definition:
nfd-constants.cpp:30
ndn::nfd::FACE_PERSISTENCY_ON_DEMAND
face is on-demand
Definition:
nfd-constants.hpp:56
ndn::nfd::FACE_SCOPE_LOCAL
face is local
Definition:
nfd-constants.hpp:41
ndn::nfd::ROUTE_ORIGIN_AUTOCONF
Definition:
nfd-constants.hpp:87
ndn::nfd::RouteOrigin
RouteOrigin
Definition:
nfd-constants.hpp:82
ndn::nfd::ROUTE_FLAGS_NONE
Definition:
nfd-constants.hpp:98
ndn::nfd::ROUTE_ORIGIN_NONE
Definition:
nfd-constants.hpp:83
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
face is persistent
Definition:
nfd-constants.hpp:53
ndn::nfd::INVALID_FACE_ID
static const uint64_t INVALID_FACE_ID
Definition:
nfd-constants.hpp:30
ndn::nfd::ROUTE_FLAG_CHILD_INHERIT
Definition:
nfd-constants.hpp:99
ndnSIM
ndn-cxx
src
encoding
nfd-constants.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12