NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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
DECL_CLASS_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)
DECL_FINAL
;
63
64
private
:
65
virtual
void
66
doSend(Transport::Packet&& packet) DECL_FINAL;
67
68
virtual
void
69
doClose() DECL_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
DECL_CLASS_FINAL
#define DECL_CLASS_FINAL
expands to 'final' if compiler supports 'final' specifier on class, otherwise expands to nothing ...
Definition:
common.hpp:70
DECL_FINAL
#define DECL_FINAL
expands to 'final' if compiler supports 'final' specifier on method, otherwise expands to nothing ...
Definition:
common.hpp:60
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
face
nfd::face::MulticastUdpTransport
MulticastUdpTransport
Definition:
multicast-udp-transport.cpp:32
nfd::face::DatagramTransport
DatagramTransport
Definition:
multicast-udp-transport.cpp:32
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 Sat Nov 12 2016 16:02:53 for ndnSIM by
1.8.12