All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
certificate-request.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
23 #ifndef NDN_CERTIFICATE_REQUEST_HPP
24 #define NDN_CERTIFICATE_REQUEST_HPP
25 
26 #include "../../interest.hpp"
27 
28 namespace ndn {
29 
36 public:
41  : nRetriesLeft_(0)
42  {
43  }
44 
49  CertificateRequest(const Interest& interest)
50  // Copy the Interest.
51  : interest_(interest),
52  nRetriesLeft_(3)
53  {
54  }
55 
62 
63 private:
64  // Disable the copy constructor and assignment operator.
66  CertificateRequest& operator=(const CertificateRequest& other);
67 };
68 
69 }
70 
71 #endif
Interest interest_
The Interest for the requested Data packet or Certificate.
Definition: certificate-request.hpp:58
int nRetriesLeft_
The number of remaining retries after time out or NACK.
Definition: certificate-request.hpp:61
CertificateRequest(const Interest &interest)
Create a CertificateRequest for the Interest and 3 retries left.
Definition: certificate-request.hpp:49
An Interest holds a Name and other fields for an interest.
Definition: interest.hpp:43
CertificateRequest()
Create a CertificateRequest with a default Interest and 0 retries left.
Definition: certificate-request.hpp:40
A CertificateRequest represents a request for a certificate, associated with the number of retries le...
Definition: certificate-request.hpp:35