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
multicast-udp-transport.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP
27
#define NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP
28
29
#include "
datagram-transport.hpp
"
30
31
namespace
nfd
{
32
namespace
face
{
33
34
// Explicit specialization of makeEndpointId for the UDP multicast case.
35
// Note that this "shall be declared before the first use of the specialization
36
// that would cause an implicit instantiation to take place, in every translation
37
// unit in which such a use occurs".
38
template
<>
39
Transport::EndpointId
40
DatagramTransport<boost::asio::ip::udp, Multicast>::makeEndpointId
(
const
protocol::endpoint& ep);
41
45
class
MulticastUdpTransport
final :
public
DatagramTransport
<boost::asio::ip::udp, Multicast>
46
{
47
public
:
55
MulticastUdpTransport
(
const
protocol::endpoint& localEndpoint,
56
const
protocol::endpoint& multicastGroup,
57
protocol::socket&& recvSocket,
58
protocol::socket&& sendSocket);
59
60
protected
:
61
virtual
void
62
beforeChangePersistency
(
ndn::nfd::FacePersistency
newPersistency)
final
;
63
64
private
:
65
virtual
void
66
doSend(
Transport::Packet
&& packet)
final
;
67
68
virtual
void
69
doClose()
final
;
70
71
private
:
72
protocol::endpoint m_multicastGroup;
73
protocol::socket m_sendSocket;
74
};
75
76
}
// namespace face
77
}
// namespace nfd
78
79
#endif // NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP
nfd::face::MulticastUdpTransport::MulticastUdpTransport
MulticastUdpTransport(const protocol::endpoint &localEndpoint, const protocol::endpoint &multicastGroup, protocol::socket &&recvSocket, protocol::socket &&sendSocket)
Creates a UDP-based transport for multicast communication.
Definition:
multicast-udp-transport.cpp:35
nfd::face::Transport::Packet
stores a packet along with the remote endpoint
Definition:
transport.hpp:113
nfd::face::MulticastUdpTransport::beforeChangePersistency
virtual void beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final
invoked before persistency is changed
Definition:
multicast-udp-transport.cpp:54
nfd::face::DatagramTransport
Implements Transport for datagram-based protocols.
Definition:
datagram-transport.hpp:45
nfd::face::DatagramTransport::makeEndpointId
static EndpointId makeEndpointId(const typename protocol::endpoint &ep)
Definition:
datagram-transport.hpp:244
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
datagram-transport.hpp
nfd::face::MulticastUdpTransport
A Transport that communicates on a UDP multicast group.
Definition:
multicast-udp-transport.hpp:45
face
nfd::face::Transport::EndpointId
uint64_t EndpointId
identifies an endpoint on the link
Definition:
transport.hpp:109
ndnSIM
NFD
daemon
face
multicast-udp-transport.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13