26 #ifndef NFD_DAEMON_FACE_HPP 27 #define NFD_DAEMON_FACE_HPP 71 :
public enable_shared_from_this<Face>, noncopyable
74 Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport);
139 ndn::nfd::FacePersistency
165 time::steady_clock::TimePoint
186 unique_ptr<LinkService> m_service;
187 unique_ptr<Transport> m_transport;
194 return m_service.get();
200 return m_transport.get();
206 m_service->sendInterest(interest);
212 m_service->sendData(data);
218 m_service->sendNack(nack);
236 return m_transport->getLocalUri();
242 return m_transport->getRemoteUri();
245 inline ndn::nfd::FaceScope
248 return m_transport->getScope();
251 inline ndn::nfd::FacePersistency
254 return m_transport->getPersistency();
260 return m_transport->setPersistency(persistency);
263 inline ndn::nfd::LinkType
266 return m_transport->getLinkType();
272 return m_transport->getState();
275 inline time::steady_clock::TimePoint
278 return m_transport->getExpirationTime();
284 m_transport->close();
294 operator<<(std::ostream& os, const FaceLogHelper<Face>& flh);
303 #endif // NFD_DAEMON_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
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