26 #ifndef NFD_DAEMON_FACE_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_TRANSPORT_HPP 31 #include <ndn-cxx/encoding/nfd-constants.hpp> 167 getLinkService()
const;
174 virtual const Counters&
212 getRemoteUri()
const;
222 getPersistency()
const;
260 getExpirationTime()
const;
264 setLocalUri(
const FaceUri& uri);
267 setRemoteUri(
const FaceUri& uri);
286 setState(TransportState newState);
316 doSend(
Packet&& packet) = 0;
327 TransportState m_state;
394 return m_persistency;
406 m_linkType = linkType;
418 BOOST_ASSERT(mtu == MTU_UNLIMITED || mtu > 0);
431 return m_expirationTime;
437 m_expirationTime = expirationTime;
441 operator<<(std::ostream& os, const FaceLogHelper<Transport>& flh);
444 typename std::enable_if<std::is_base_of<Transport, T>::value &&
445 !std::is_same<Transport, T>::value, std::ostream&>::type
446 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
448 return os << FaceLogHelper<Transport>(flh.obj);
454 #endif // NFD_DAEMON_FACE_TRANSPORT_HPP
void setExpirationTime(const time::steady_clock::TimePoint &expirationTime)
TransportCounters Counters
counters provided by Transport
std::ostream & operator<<(std::ostream &os, const Face &face)
time::steady_clock::TimePoint getExpirationTime() const
const ssize_t MTU_UNLIMITED
indicates the transport has no limit on payload size
TransportState
indicates the state of a transport
void setRemoteUri(const FaceUri &uri)
const ssize_t MTU_INVALID
(for internal use) indicates MTU field is unset
represents the underlying protocol and address used by a Face
stores a packet along with the remote endpoint
counters provided by Transport
PacketCounter nOutPackets
count of outgoing packets
ndn::nfd::FaceScope getScope() const
Class representing a wire element of NDN-TLV packet format.
void setLinkType(ndn::nfd::LinkType linkType)
represents a counter of number of packets
const Face * getFace() const
ByteCounter nOutBytes
total outgoing bytes
provides a lightweight signal / event system
FaceUri getRemoteUri() const
the transport is being closed due to a failure
void setScope(ndn::nfd::FaceScope scope)
ByteCounter nInBytes
total incoming bytes
represents a counter of number of bytes
FaceUri getLocalUri() const
TransportState getState() const
Copyright (c) 2011-2015 Regents of the University of California.
EndpointId remoteEndpoint
identifies the remote endpoint
signal::Signal< Transport, TransportState, TransportState > afterStateChange
signals when transport state changes
the transport is closed, and can be safely deallocated
void setLocalUri(const FaceUri &uri)
const LinkService * getLinkService() const
the transport is requested to be closed
ndn::nfd::LinkType getLinkType() const
virtual const Counters & getCounters() const
ndn::nfd::FacePersistency getPersistency() const
PacketCounter nInPackets
count of incoming packets
uint64_t EndpointId
identifies an endpoint on the link
Block packet
the packet as a TLV block
the transport is down temporarily, and is being recovered