26 #ifndef NFD_DAEMON_FACE_FACE_HPP 27 #define NFD_DAEMON_FACE_FACE_HPP 71 :
public std::enable_shared_from_this<Face>, noncopyable
74 Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport);
143 ndn::nfd::FacePersistency
169 time::steady_clock::TimePoint
190 unique_ptr<LinkService> m_service;
191 unique_ptr<Transport> m_transport;
198 return m_service.get();
204 return m_transport.get();
210 m_service->sendInterest(interest);
216 m_service->sendData(data);
222 m_service->sendNack(nack);
240 return m_transport->getLocalUri();
246 return m_transport->getRemoteUri();
249 inline ndn::nfd::FaceScope
252 return m_transport->getScope();
255 inline ndn::nfd::FacePersistency
258 return m_transport->getPersistency();
264 return m_transport->setPersistency(persistency);
267 inline ndn::nfd::LinkType
270 return m_transport->getLinkType();
276 return m_transport->getState();
279 inline time::steady_clock::TimePoint
282 return m_transport->getExpirationTime();
288 m_transport->close();
298 operator<<(std::ostream& os, const FaceLogHelper<Face>& flh);
307 #endif // NFD_DAEMON_FACE_FACE_HPP LinkService * getLinkService() const
TransportState
indicates the state of a transport
void setPersistency(ndn::nfd::FacePersistency persistency)
changes face persistency setting
Transport * getTransport() const
signal::Signal< LinkService, lp::Nack > & afterReceiveNack
signals on Nack received
signal::Signal< LinkService, Interest > & afterReceiveInterest
signals on Interest received
const FaceId FACEID_INTERNAL_FACE
identifies the InternalFace used in management
const FaceCounters & getCounters() const
FaceUri getRemoteUri() const
FaceState getState() const
void setId(FaceId id)
sets face ID
void close()
request the face to be closed
signal::Signal< LinkService, Data > & afterReceiveData
signals on Data received
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
TransportState FaceState
indicates the state of a face
const FaceId FACEID_RESERVED_MAX
upper bound of reserved FaceIds
time::steady_clock::TimePoint getExpirationTime() const
generalization of a network interface
void sendData(const Data &data)
sends Data on Face
gives access to counters provided by Face
FaceUri getLocalUri() const
Face(unique_ptr< LinkService > service, unique_ptr< Transport > transport)
ndn::nfd::LinkType getLinkType() const
void sendNack(const lp::Nack &nack)
sends Nack on Face
signal::Signal< Transport, FaceState, FaceState > & afterStateChange
signals after face state changed
const FaceId FACEID_NULL
identifies the NullFace that drops every packet
signal::Signal< LinkService, Interest > & onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
void sendInterest(const Interest &interest)
sends Interest on Face
uint64_t FaceId
identifies a face
const FaceId FACEID_CONTENT_STORE
identifies a packet comes from the ContentStore
ndn::nfd::FacePersistency getPersistency() const
ndn::nfd::FaceScope getScope() const
const FaceId INVALID_FACEID
indicates an invalid FaceId