|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 #ifndef NFD_DAEMON_FACE_FACE_HPP
27 #define NFD_DAEMON_FACE_FACE_HPP
55 Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport);
177 unique_ptr<LinkService> m_service;
178 unique_ptr<Transport> m_transport;
186 return m_service.get();
192 return m_transport.get();
198 m_service->sendInterest(interest, endpointId);
204 m_service->sendData(data, endpointId);
210 m_service->sendNack(nack, endpointId);
240 return m_transport->getLocalUri();
246 return m_transport->getRemoteUri();
252 return m_transport->getScope();
258 return m_transport->getPersistency();
264 return m_transport->setPersistency(persistency);
270 return m_transport->getLinkType();
276 return m_transport->getState();
282 return m_transport->getExpirationTime();
288 m_transport->close();
306 #endif // NFD_DAEMON_FACE_FACE_HPP
TransportState
Indicates the state of a transport.
const FaceCounters & getCounters() const
uint64_t getMetric() const
signal::Signal< LinkService, lp::Nack, EndpointId > & afterReceiveNack
signals on Nack received
Transport * getTransport() const
represents the underlying protocol and address used by a Face
TransportState FaceState
indicates the state of a face
void sendNack(const lp::Nack &nack, const EndpointId &endpointId)
send Nack to endpointId
signal::Signal< LinkService, Interest, EndpointId > & afterReceiveInterest
signals on Interest received
gives access to counters provided by Face
signal::Signal< LinkService, Interest > & onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx
FaceUri getLocalUri() const
provides a lightweight signal / event system
std::ostream & operator<<(std::ostream &os, const Face &face)
void close()
request the face to be closed
void sendData(const Data &data, const EndpointId &endpointId)
send Data to endpointId
Copyright (c) 2011-2015 Regents of the University of California.
FaceUri getRemoteUri() const
ndn::nfd::FacePersistency getPersistency() const
void setId(FaceId id)
sets face ID
time::steady_clock::TimePoint getExpirationTime() const
uint64_t FaceId
Identifies a face.
generalization of a network interface
signal::Signal< Transport, FaceState, FaceState > & afterStateChange
signals after face state changed
FaceState getState() const
LinkService * getLinkService() const
Face(unique_ptr< LinkService > service, unique_ptr< Transport > transport)
Represents an Interest packet.
Represents a Data packet.
ndn::nfd::FaceScope getScope() const
represents a Network Nack
void setPersistency(ndn::nfd::FacePersistency persistency)
changes face persistency setting
void sendInterest(const Interest &interest, const EndpointId &endpointId)
send Interest to endpointId
ndn::nfd::LinkType getLinkType() const
uint64_t EndpointId
Identifies a remote endpoint on the link.
signal::Signal< LinkService, Data, EndpointId > & afterReceiveData
signals on Data received
void setMetric(uint64_t metric)
For internal use by FaceLogging macros.
The lower half of a Face.
#define FINAL_UNLESS_WITH_TESTS