interest-types.h
1 
21 #ifndef NDN_INTEREST_TYPES_H
22 #define NDN_INTEREST_TYPES_H
23 
24 #include "name-types.h"
25 #include "key-types.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef enum {
32  ndn_Exclude_COMPONENT = 0,
33  ndn_Exclude_ANY = 1
34 } ndn_ExcludeType;
35 
40  ndn_ExcludeType type;
41  struct ndn_NameComponent component;
42 };
43 
47 struct ndn_Exclude {
49  size_t maxEntries;
50  size_t nEntries;
51 };
52 
53 enum {
54  ndn_Interest_CHILD_SELECTOR_LEFT = 0,
55  ndn_Interest_CHILD_SELECTOR_RIGHT = 1
56 };
57 
61 struct ndn_Interest {
62  struct ndn_Name name;
65  struct ndn_KeyLocator keyLocator;
66  struct ndn_Exclude exclude;
69  ndn_Milliseconds interestLifetimeMilliseconds;
70  struct ndn_Blob nonce;
73 };
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
An ndn_ExcludeEntry holds an ndn_ExcludeType, and if it is a COMPONENT, it holds a pointer to the com...
Definition: interest-types.h:39
size_t nEntries
the number of entries in the exclude, 0 for no exclude
Definition: interest-types.h:50
int mustBeFresh
bool.
Definition: interest-types.h:68
int childSelector
-1 for none
Definition: interest-types.h:67
int selectedDelegationIndex
-1 for none
Definition: interest-types.h:72
struct ndn_Blob nonce
The blob whose value is a pointer to a pre-allocated buffer.
Definition: interest-types.h:70
ndn_Milliseconds interestLifetimeMilliseconds
-1.0 for none
Definition: interest-types.h:69
struct ndn_ExcludeEntry * entries
pointer to the array of entries.
Definition: interest-types.h:48
An ndn_Interest holds an ndn_Name and other fields for an interest.
Definition: interest-types.h:61
An ndn_KeyLocator holds the type of key locator and related data.
Definition: key-types.h:38
int minSuffixComponents
-1 for none
Definition: interest-types.h:63
An ndn_Exclude holds an array of ndn_ExcludeEntry.
Definition: interest-types.h:47
Copyright (C) 2015-2016 Regents of the University of California.
Definition: name-types.h:33
struct ndn_Blob linkWireEncoding
The link whose value is a pointer to a pre-allocated buffer.
Definition: interest-types.h:71
An ndn_Name holds an array of ndn_NameComponent.
Definition: name-types.h:40
Copyright (C) 2015-2016 Regents of the University of California.
Definition: blob-types.h:33
size_t maxEntries
the number of elements in the allocated entries array
Definition: interest-types.h:49
int maxSuffixComponents
-1 for none
Definition: interest-types.h:64