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
protocol-factory.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
27
#define NFD_DAEMON_FACE_PROTOCOL_FACTORY_HPP
28
29
#include "
channel.hpp
"
30
#include <ndn-cxx/encoding/nfd-constants.hpp>
31
32
namespace
nfd
{
33
37
class
ProtocolFactory
38
{
39
public
:
43
class
Error
:
public
std::runtime_error
44
{
45
public
:
46
explicit
47
Error
(
const
std::string& what)
48
:
std
::runtime_error(what)
49
{
50
}
51
};
52
61
virtual
void
62
createFace
(
const
FaceUri
& uri,
63
ndn::nfd::FacePersistency
persistency,
64
const
FaceCreatedCallback
& onCreated,
65
const
FaceCreationFailedCallback
& onConnectFailed) = 0;
66
67
virtual
std::vector<shared_ptr<const Channel>>
68
getChannels
()
const
= 0;
69
};
70
71
}
// namespace nfd
72
73
#endif // NFD_DAEMON_FACE_PROTOCOL_FACTORY_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
nfd::ProtocolFactory::Error
Base class for all exceptions thrown by protocol factories.
Definition:
protocol-factory.hpp:43
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
nfd::ProtocolFactory::createFace
virtual void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onConnectFailed)=0
Try to create Face using the supplied FaceUri.
channel.hpp
nfd::ProtocolFactory::getChannels
virtual std::vector< shared_ptr< const Channel > > getChannels() const =0
std
STL namespace.
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:49
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ProtocolFactory
Abstract base class for all protocol factories.
Definition:
protocol-factory.hpp:37
nfd::ProtocolFactory::Error::Error
Error(const std::string &what)
Definition:
protocol-factory.hpp:47
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
protocol-factory.hpp
Generated on Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12