27 #include <ndn-cxx/util/string-helper.hpp> 34 , origin(
ndn::
nfd::ROUTE_ORIGIN_APP)
36 , flags(
ndn::
nfd::ROUTE_FLAGS_NONE)
54 <<
"faceid: " << route.
faceId 55 <<
", origin: " << route.
origin 56 <<
", cost: " << route.
cost 57 <<
", flags: " << ndn::AsHex{route.
flags};
59 os <<
", expires in: " << time::duration_cast<time::milliseconds>(*route.
expires - time::steady_clock::now());
62 os <<
", never expires";
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents...
bool operator==(const Route &lhs, const Route &rhs)
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
ndn::nfd::RouteOrigin origin
represents a route for a name prefix
ndn::optional< time::steady_clock::TimePoint > expires
std::underlying_type< ndn::nfd::RouteFlags >::type flags