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
Classes
Files
File List
File Members
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
:
56
MulticastUdpTransport
(
const
protocol::endpoint& localEndpoint,
57
const
protocol::endpoint& multicastGroup,
58
protocol::socket
&& recvSocket,
59
protocol::socket
&& sendSocket,
60
ndn::nfd::LinkType
linkType);
61
62
private
:
63
void
64
doSend(
Transport::Packet
&& packet)
final
;
65
66
void
67
doClose()
final
;
68
69
private
:
70
protocol::endpoint m_multicastGroup;
71
protocol::socket
m_sendSocket;
72
};
73
74
}
// namespace face
75
}
// namespace nfd
76
77
#endif // NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:57
nfd::face::Transport::Packet
stores a packet along with the remote endpoint
Definition:
transport.hpp:113
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:243
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::face::MulticastUdpTransport::MulticastUdpTransport
MulticastUdpTransport(const protocol::endpoint &localEndpoint, const protocol::endpoint &multicastGroup, protocol::socket &&recvSocket, protocol::socket &&sendSocket, ndn::nfd::LinkType linkType)
Creates a UDP-based transport for multicast communication.
Definition:
multicast-udp-transport.cpp:35
datagram-transport.hpp
nfd::face::MulticastUdpTransport
A Transport that communicates on a UDP multicast group.
Definition:
multicast-udp-transport.hpp:45
face
websocketpp::transport::asio::socket::error::socket
Catch-all error for socket component errors that don't fit in other categories.
Definition:
base.hpp:83
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 Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11