NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
channel.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_CHANNEL_HPP
27
#define NFD_DAEMON_FACE_CHANNEL_HPP
28
29
#include "
face.hpp
"
30
31
namespace
nfd
{
32
38
typedef
function<void(const shared_ptr<Face>& newFace)>
FaceCreatedCallback
;
39
44
typedef
function<void(const std::string& reason)>
FaceCreationFailedCallback
;
45
46
47
class
Channel
: noncopyable
48
{
49
public
:
50
virtual
51
~Channel
();
52
53
const
FaceUri
&
54
getUri
()
const
;
55
56
protected
:
57
void
58
setUri
(
const
FaceUri
& uri);
59
60
private
:
61
FaceUri
m_uri;
62
};
63
64
inline
const
FaceUri
&
65
Channel::getUri
()
const
66
{
67
return
m_uri;
68
}
69
77
void
78
connectFaceClosedSignal
(Face&
face
,
const
std::function<
void
()>& f);
79
80
}
// namespace nfd
81
82
#endif // NFD_DAEMON_FACE_CHANNEL_HPP
face.hpp
nfd::FaceCreationFailedCallback
function< void(const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
Definition:
channel.hpp:44
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
nfd::Channel
Definition:
channel.hpp:47
nfd::connectFaceClosedSignal
void connectFaceClosedSignal(Face &face, const std::function< void()> &f)
invokes a callback when the face is closed
Definition:
channel.cpp:41
nfd::Channel::getUri
const FaceUri & getUri() const
Definition:
channel.hpp:65
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
face
nfd::Channel::setUri
void setUri(const FaceUri &uri)
Definition:
channel.cpp:35
nfd::Channel::~Channel
virtual ~Channel()
Definition:
channel.cpp:30
nfd::FaceCreatedCallback
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when the face is created (as a response to incoming connec...
Definition:
channel.hpp:38
ndnSIM
NFD
daemon
face
channel.hpp
Generated on Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12