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
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
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
bool
47
canChangePersistencyToImpl
(
ndn::nfd::FacePersistency
newPersistency)
const
final
;
48
49
void
50
afterChangePersistency
(
ndn::nfd::FacePersistency
oldPersistency)
final
;
51
52
private
:
53
void
54
scheduleClosureWhenIdle();
55
56
private
:
57
const
time::nanoseconds m_idleTimeout;
58
scheduler::ScopedEventId
m_closeIfIdleEvent;
59
};
60
61
}
// namespace face
62
}
// namespace nfd
63
64
#endif // NFD_DAEMON_FACE_UNICAST_UDP_TRANSPORT_HPP
nfd::face::UnicastUdpTransport::canChangePersistencyToImpl
bool canChangePersistencyToImpl(ndn::nfd::FacePersistency newPersistency) const final
invoked by canChangePersistencyTo to perform the check
Definition:
unicast-udp-transport.cpp:84
nfd::face::DatagramTransport
Implements Transport for datagram-based protocols.
Definition:
datagram-transport.hpp:45
nfd::face::UnicastUdpTransport::UnicastUdpTransport
UnicastUdpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency, time::nanoseconds idleTimeout)
Definition:
unicast-udp-transport.cpp:42
nfd::face::UnicastUdpTransport
A Transport that communicates on a unicast UDP socket.
Definition:
unicast-udp-transport.hpp:38
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:45
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
datagram-transport.hpp
nfd::scheduler::ScopedEventId
cancels an event automatically upon destruction
Definition:
scheduler.hpp:59
face
nfd::face::UnicastUdpTransport::afterChangePersistency
void afterChangePersistency(ndn::nfd::FacePersistency oldPersistency) final
invoked after the persistency has been changed
Definition:
unicast-udp-transport.cpp:90
scheduler.hpp
websocketpp::transport::asio::socket::error::socket
Catch-all error for socket component errors that don't fit in other categories.
Definition:
base.hpp:83
ndnSIM
NFD
daemon
face
unicast-udp-transport.hpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11