37 const shared_ptr<ValidationState>& state,
41 if (interestState !=
nullptr) {
42 uint64_t incomingFaceId = 0;
44 if (incomingFaceIdTag !=
nullptr) {
45 incomingFaceId = incomingFaceIdTag->
get();
48 if (incomingFaceId != 0) {
49 Interest directInterest(keyRequest->m_interest);
51 directInterest.
setTag(make_shared<lp::NextHopFaceIdTag>(incomingFaceId));
Fetch missing keys from the network.
Copyright (c) 2013-2017 Regents of the University of California.
CertificateFetcherDirectFetch(Face &face)
void refreshNonce()
Refresh nonce.
represents an Interest packet
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
void setTag(shared_ptr< T > tag) const
set a tag item
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.
shared_ptr< T > getTag() const
get a tag item
const PendingInterestId * expressInterest(const Interest &interest, const DataCallback &afterSatisfied, const NackCallback &afterNacked, const TimeoutCallback &afterTimeout)
Express Interest.
const Interest & getOriginalInterest() const
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.