26 #ifndef NFD_DAEMON_FACE_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_TRANSPORT_HPP 144 getLinkService()
const;
172 send(
const Block& packet);
183 getRemoteUri()
const;
193 getPersistency()
const;
233 getSendQueueCapacity()
const;
249 getExpirationTime()
const;
272 setLocalUri(
const FaceUri& uri);
275 setRemoteUri(
const FaceUri& uri);
287 setSendQueueCapacity(ssize_t sendQueueCapacity);
297 setState(TransportState newState);
338 doSend(
const Block& packet) = 0;
349 ssize_t m_sendQueueCapacity;
350 TransportState m_state;
417 return m_persistency;
429 m_linkType = linkType;
441 return m_sendQueueCapacity;
447 m_sendQueueCapacity = sendQueueCapacity;
459 return m_expirationTime;
465 m_expirationTime = expirationTime;
469 operator<<(std::ostream& os, const FaceLogHelper<Transport>& flh);
474 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
476 return os << FaceLogHelper<Transport>(flh.obj);
482 #endif // NFD_DAEMON_FACE_TRANSPORT_HPP const ssize_t QUEUE_UNSUPPORTED
indicates that the transport does not support reading the queue capacity/length
void setExpirationTime(const time::steady_clock::TimePoint &expirationTime)
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
Counters provided by a transport.
PacketCounter nOutPackets
count of outgoing packets
const ssize_t QUEUE_ERROR
indicates that the transport was unable to retrieve the queue capacity/length
ndn::nfd::FaceScope getScope() const
Represents a TLV element of the NDN 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
uint64_t EndpointId
Identifies a remote endpoint on the link.
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.
signal::Signal< Transport, TransportState, TransportState > afterStateChange
signals when transport state changes
the transport is closed, and can be safely deallocated
virtual ssize_t getSendQueueLength()
ndn::nfd::LinkType getLinkType(const std::string &ifName)
Obtain information about WiFi link type.
ssize_t getSendQueueCapacity() const
void setLocalUri(const FaceUri &uri)
void close(T *e, websocketpp::connection_hdl hdl)
const LinkService * getLinkService() const
the transport is being closed gracefully, either by the peer or by a call to close() ...
represents the underlying protocol and address used by a Face
ndn::nfd::LinkType getLinkType() const
virtual const Counters & getCounters() const
ndn::nfd::FacePersistency getPersistency() const
void setSendQueueCapacity(ssize_t sendQueueCapacity)
the transport is up and can transmit packets
PacketCounter nInPackets
count of incoming packets
The lower half of a Face.
the transport is temporarily down, and is being recovered