NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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
h
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
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
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
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
websocket-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_WEBSOCKET_FACTORY_HPP
27
#define NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
28
29
#include "
protocol-factory.hpp
"
30
#include "
websocket-channel.hpp
"
31
32
namespace
nfd
{
33
34
class
WebSocketFactory
:
public
ProtocolFactory
35
{
36
public
:
49
shared_ptr<WebSocketChannel>
50
createChannel
(
const
websocket::Endpoint
& localEndpoint);
51
58
shared_ptr<WebSocketChannel>
59
createChannel
(
const
std::string& localIp,
const
std::string& localPort);
60
61
public
:
// from ProtocolFactory
62
virtual
void
63
createFace
(
const
FaceUri
& uri,
64
ndn::nfd::FacePersistency
persistency,
65
bool
wantLocalFieldsEnabled,
66
const
FaceCreatedCallback
& onCreated,
67
const
FaceCreationFailedCallback
& onFailure)
override
;
68
69
virtual
std::vector<shared_ptr<const Channel>>
70
getChannels
()
const override
;
71
72
private
:
79
shared_ptr<WebSocketChannel>
80
findChannel(
const
websocket::Endpoint
& endpoint)
const
;
81
82
private
:
83
std::map<websocket::Endpoint, shared_ptr<WebSocketChannel>> m_channels;
84
};
85
86
}
// namespace nfd
87
88
#endif // NFD_DAEMON_FACE_WEBSOCKET_FACTORY_HPP
nfd::WebSocketFactory::getChannels
virtual std::vector< shared_ptr< const Channel > > getChannels() const override
Definition:
websocket-factory.cpp:64
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
protocol-factory.hpp
nfd::WebSocketFactory::createChannel
shared_ptr< WebSocketChannel > createChannel(const websocket::Endpoint &localEndpoint)
Create WebSocket-based channel using websocket::Endpoint.
Definition:
websocket-factory.cpp:33
websocket-channel.hpp
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::FaceCreationFailedCallback
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
Definition:
channel.hpp:44
nfd::WebSocketFactory::createFace
virtual void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create Face using the supplied FaceUri.
Definition:
websocket-factory.cpp:54
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
nfd::websocket::Endpoint
boost::asio::ip::tcp::endpoint Endpoint
Definition:
websocket-channel.hpp:35
nfd::WebSocketFactory
Definition:
websocket-factory.hpp:34
ndnSIM
NFD
daemon
face
websocket-factory.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13