26 #ifndef NFD_DAEMON_FACE_FACE_HPP 27 #define NFD_DAEMON_FACE_FACE_HPP 57 Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport);
138 ndn::nfd::FacePersistency
170 time::steady_clock::TimePoint
191 m_channel = std::move(channel);
196 unique_ptr<LinkService> m_service;
197 unique_ptr<Transport> m_transport;
199 weak_ptr<Channel> m_channel;
205 return m_service.get();
211 return m_transport.get();
217 m_transport->close();
223 m_service->sendInterest(interest);
229 m_service->sendData(data);
235 m_service->sendNack(nack);
253 return m_transport->getLocalUri();
259 return m_transport->getRemoteUri();
262 inline ndn::nfd::FaceScope
265 return m_transport->getScope();
268 inline ndn::nfd::FacePersistency
271 return m_transport->getPersistency();
277 return m_transport->setPersistency(persistency);
280 inline ndn::nfd::LinkType
283 return m_transport->getLinkType();
289 return m_service->getEffectiveMtu();
295 return m_transport->getState();
298 inline time::steady_clock::TimePoint
301 return m_transport->getExpirationTime();
311 operator<<(std::ostream& os, const FaceLogHelper<Face>& flh);
319 #endif // NFD_DAEMON_FACE_FACE_HPP FaceUri getRemoteUri() const
FaceState getState() const
const FaceCounters & getCounters() const
TransportState
Indicates the state of a transport.
void setPersistency(ndn::nfd::FacePersistency persistency)
changes face persistency setting
signal::Signal< LinkService, Interest, EndpointId > & afterReceiveInterest
signals on Interest received
signal::Signal< LinkService, Data, EndpointId > & afterReceiveData
signals on Data received
ndn::nfd::FacePersistency getPersistency() const
The lower half of a Face.
ndn::nfd::LinkType getLinkType() const
void setId(FaceId id)
sets face ID
ndn::nfd::FaceScope getScope() const
void close()
Request that the face be closed.
Transport * getTransport() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
TransportState FaceState
indicates the state of a face
FaceUri getLocalUri() const
weak_ptr< Channel > getChannel() const
Get channel on which face was created (unicast) or the associated channel (multicast) ...
generalization of a network interface
void sendData(const Data &data)
send Data
gives access to counters provided by Face
LinkService * getLinkService() const
Face(unique_ptr< LinkService > service, unique_ptr< Transport > transport)
Represents a channel that listens on a local endpoint.
void sendNack(const lp::Nack &nack)
send Nack
signal::Signal< Transport, FaceState, FaceState > & afterStateChange
signals after face state changed
signal::Signal< LinkService, lp::Nack, EndpointId > & afterReceiveNack
signals on Nack received
signal::Signal< LinkService, Interest > & onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
void sendInterest(const Interest &interest)
send Interest
void setChannel(weak_ptr< Channel > channel)
Set channel on which face was created (unicast) or the associated channel (multicast) ...
#define FINAL_UNLESS_WITH_TESTS
uint64_t FaceId
Identifies a face.
ssize_t getMtu() const
Returns face effective MTU.
time::steady_clock::TimePoint getExpirationTime() const