NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
udp-face.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_UDP_FACE_HPP
27
#define NFD_DAEMON_FACE_UDP_FACE_HPP
28
29
#include "
datagram-face.hpp
"
30
#include "
core/scheduler.hpp
"
31
32
namespace
nfd
{
33
38
class
UdpFace
:
public
DatagramFace
<boost::asio::ip::udp>
39
{
40
public
:
41
UdpFace
(
const
FaceUri
& remoteUri,
const
FaceUri
& localUri,
42
protocol::socket socket,
ndn::nfd::FacePersistency
persistency,
43
const
time::seconds& idleTimeout);
44
45
ndn::nfd::FaceStatus
46
getFaceStatus
()
const
DECL_OVERRIDE
;
47
48
private
:
49
void
50
closeIfIdle();
51
52
private
:
53
const
time::seconds m_idleTimeout;
54
time::steady_clock::TimePoint
m_lastIdleCheck;
55
scheduler::ScopedEventId
m_closeIfIdleEvent;
56
57
// friend because it needs to invoke protected Face::setOnDemand
58
friend
class
UdpChannel
;
59
};
60
61
}
// namespace nfd
62
63
#endif // NFD_DAEMON_FACE_UDP_FACE_HPP
ndn::time::steady_clock::TimePoint
time_point TimePoint
Definition:
time.hpp:108
nfd::DatagramFace
Definition:
datagram-face.hpp:38
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
nfd::UdpChannel
Class implementing UDP-based channel to create faces.
Definition:
udp-channel.hpp:42
nfd::UdpFace::getFaceStatus
ndn::nfd::FaceStatus getFaceStatus() const 1
Definition:
udp-face.cpp:75
nfd::UdpFace
Implementation of Face abstraction that uses unicast UDP as underlying transport mechanism.
Definition:
udp-face.hpp:38
DECL_OVERRIDE
#define DECL_OVERRIDE
expands to 'override' if compiler supports this feature, otherwise expands to nothing ...
Definition:
common.hpp:49
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
datagram-face.hpp
nfd::scheduler::ScopedEventId
cancels an event automatically upon destruction
Definition:
scheduler.hpp:53
ndn::nfd::FaceStatus
represents Face status
Definition:
nfd-face-status.hpp:37
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:48
scheduler.hpp
nfd::UdpFace::UdpFace
UdpFace(const FaceUri &remoteUri, const FaceUri &localUri, protocol::socket socket, ndn::nfd::FacePersistency persistency, const time::seconds &idleTimeout)
Definition:
udp-face.cpp:40
ndnSIM
NFD
daemon
face
udp-face.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11