certificate-request.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_SECURITY_V2_CERTIFICATE_REQUEST_HPP
23 #define NDN_SECURITY_V2_CERTIFICATE_REQUEST_HPP
24 
25 #include "../../interest.hpp"
26 
27 namespace ndn {
28 namespace security {
29 namespace v2 {
30 
34 class CertificateRequest : noncopyable
35 {
36 public:
38  : m_nRetriesLeft(0)
39  {
40  }
41 
42  explicit
43  CertificateRequest(const Interest& interest, uint64_t requesterFaceId = 0)
44  : m_interest(interest)
45  , m_nRetriesLeft(3)
46  {
47  }
48 
49 public:
54 };
55 
56 } // namespace v2
57 } // namespace security
58 } // namespace ndn
59 
60 #endif // NDN_SECURITY_V2_CERTIFICATE_REQUEST_HPP
Copyright (c) 2013-2016 Regents of the University of California.
Definition: common.hpp:74
CertificateRequest(const Interest &interest, uint64_t requesterFaceId=0)
represents an Interest packet
Definition: interest.hpp:42
Request for a certificate, associated with the number of attempts.
Interest m_interest
the name for the requested data/certificate.
int m_nRetriesLeft
the number of remaining retries after time out or NACK