NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
unicast-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_UNICAST_UDP_TRANSPORT_HPP
27
#define NFD_DAEMON_FACE_UNICAST_UDP_TRANSPORT_HPP
28
29
#include "
datagram-transport.hpp
"
30
#include "
core/scheduler.hpp
"
31
32
namespace
nfd
{
33
namespace
face
{
34
38
class
UnicastUdpTransport
DECL_CLASS_FINAL
:
public
DatagramTransport
<boost::asio::ip::udp, Unicast>
39
{
40
public
:
41
UnicastUdpTransport
(protocol::socket&& socket,
42
ndn::nfd::FacePersistency
persistency,
43
time::nanoseconds idleTimeout);
44
45
protected
:
46
virtual
void
47
beforeChangePersistency(
ndn::nfd::FacePersistency
newPersistency)
DECL_FINAL
;
48
49
private
:
50
void
51
scheduleClosureWhenIdle();
52
53
private
:
54
const
time::nanoseconds m_idleTimeout;
55
scheduler::ScopedEventId m_closeIfIdleEvent;
56
};
57
58
}
// namespace face
59
}
// namespace nfd
60
61
#endif // NFD_DAEMON_FACE_UNICAST_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
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:49
nfd::face::UnicastUdpTransport
UnicastUdpTransport
Definition:
unicast-udp-transport.cpp:39
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
datagram-transport.hpp
face
scheduler.hpp
nfd::face::DatagramTransport
DatagramTransport
Definition:
multicast-udp-transport.cpp:32
ndnSIM
NFD
daemon
face
unicast-udp-transport.hpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12