37 const shared_ptr<ValidationState>& state,
41 uint64_t incomingFaceId = 0;
42 if (interestState !=
nullptr) {
44 if (incomingFaceIdTag !=
nullptr) {
45 incomingFaceId = incomingFaceIdTag->
get();
51 if (incomingFaceIdTag !=
nullptr) {
52 incomingFaceId = incomingFaceIdTag->
get();
55 if (incomingFaceId != 0) {
56 Interest directInterest(keyRequest->m_interest);
58 directInterest.
setTag(make_shared<lp::NextHopFaceIdTag>(incomingFaceId));
const Data & getOriginalData() const
void setTag(shared_ptr< T > tag) const
set a tag item
Fetch missing keys from the network.
Copyright (c) 2011-2015 Regents of the University of California.
CertificateFetcherDirectFetch(Face &face)
shared_ptr< T > getTag() const
get a tag item
const Interest & getOriginalInterest() const
void refreshNonce()
Change nonce value.
Represents an Interest packet.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Validation state for a data packet.
void doFetch(const shared_ptr< CertificateRequest > &keyRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
provides a tag type for simple types
Validation state for an interest packet.
Provide a communication channel with local or remote NDN forwarder.
const PendingInterestId * expressInterest(const Interest &interest, const DataCallback &afterSatisfied, const NackCallback &afterNacked, const TimeoutCallback &afterTimeout)
Express Interest.
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.