26 #ifndef NFD_DAEMON_FACE_FACE_HPP 27 #define NFD_DAEMON_FACE_FACE_HPP 57 Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport);
60 getLinkService()
const;
81 sendInterest(
const Interest& interest);
86 sendData(
const Data& data);
122 setMetric(uint64_t metric);
135 getRemoteUri()
const;
145 getPersistency()
const;
177 getExpirationTime()
const;
211 unique_ptr<LinkService> m_service;
212 unique_ptr<Transport> m_transport;
214 weak_ptr<Channel> m_channel;
219 Face::getLinkService()
const 221 return m_service.get();
225 Face::getTransport()
const 227 return m_transport.get();
233 m_transport->close();
237 Face::sendInterest(
const Interest& interest)
239 m_service->sendInterest(interest);
243 Face::sendData(
const Data& data)
245 m_service->sendData(data);
249 Face::sendNack(
const lp::Nack& nack)
251 m_service->sendNack(nack);
267 Face::setMetric(uint64_t metric)
273 Face::getMetric()
const 279 Face::getLocalUri()
const 281 return m_transport->getLocalUri();
285 Face::getRemoteUri()
const 287 return m_transport->getRemoteUri();
291 Face::getScope()
const 293 return m_transport->getScope();
297 Face::getPersistency()
const 299 return m_transport->getPersistency();
305 return m_transport->setPersistency(persistency);
311 return m_transport->getLinkType();
317 return m_service->getEffectiveMtu();
321 Face::getState()
const 323 return m_transport->getState();
327 Face::getExpirationTime()
const 329 return m_transport->getExpirationTime();
333 operator<<(std::ostream& os, const FaceLogHelper<Face>& flh);
341 #endif // NFD_DAEMON_FACE_FACE_HPP signal::Signal< LinkService, Data, EndpointId > & afterReceiveData
signals on Data received
weak_ptr< Channel > getChannel() const
Get channel on which face was created (unicast) or the associated channel (multicast) ...
Represents a channel that listens on a local endpoint.
TransportState
Indicates the state of a transport.
signal::Signal< LinkService, Interest > & onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
Represents an Interest packet.
provides a lightweight signal / event system
generalization of a network interface
represents a Network Nack
FaceCounters & getCounters()
Copyright (c) 2011-2015 Regents of the University of California.
TransportState FaceState
indicates the state of a face
signal::Signal< LinkService, Interest, EndpointId > & afterReceiveInterest
signals on Interest received
void setChannel(weak_ptr< Channel > channel)
Set channel on which face was created (unicast) or the associated channel (multicast) ...
ndn::nfd::LinkType getLinkType(const std::string &ifName)
Obtain information about WiFi link type.
void close(T *e, websocketpp::connection_hdl hdl)
represents the underlying protocol and address used by a Face
signal::Signal< LinkService, lp::Nack, EndpointId > & afterReceiveNack
signals on Nack received
signal::Signal< Transport, FaceState, FaceState > & afterStateChange
signals after face state changed
const FaceCounters & getCounters() const
Represents a Data packet.
uint64_t FaceId
Identifies a face.
The lower half of a Face.
gives access to counters provided by Face