Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 1 | /** |
Jeff Thompson | 7687dc0 | 2013-09-13 11:54:07 -0700 | [diff] [blame] | 2 | * Copyright (C) 2013 Regents of the University of California. |
| 3 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_NODE_HPP |
| 8 | #define NDN_NODE_HPP |
| 9 | |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 10 | #include "common.hpp" |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 11 | #include "interest.hpp" |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 12 | #include "data.hpp" |
| 13 | #include "transport/tcp-transport.hpp" |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 14 | #include "encoding/binary-xml-element-reader.hpp" |
Jeff Thompson | 1f8a31a | 2013-09-30 16:18:47 -0700 | [diff] [blame] | 15 | #include "forwarding-flags.hpp" |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 16 | |
| 17 | namespace ndn { |
| 18 | |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 19 | /** |
| 20 | * An OnData function object is used to pass a callback to expressInterest. |
| 21 | */ |
Jeff Thompson | a6d15c8 | 2013-09-17 15:34:32 -0700 | [diff] [blame] | 22 | typedef func_lib::function<void(const ptr_lib::shared_ptr<const Interest>&, const ptr_lib::shared_ptr<Data>&)> OnData; |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 23 | |
| 24 | /** |
| 25 | * An OnTimeout function object is used to pass a callback to expressInterest. |
| 26 | */ |
Jeff Thompson | a6d15c8 | 2013-09-17 15:34:32 -0700 | [diff] [blame] | 27 | typedef func_lib::function<void(const ptr_lib::shared_ptr<const Interest>&)> OnTimeout; |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 28 | |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 29 | /** |
| 30 | * An OnInterest function object is used to pass a callback to registerPrefix. |
| 31 | */ |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 32 | typedef func_lib::function<void |
Jeff Thompson | a6d15c8 | 2013-09-17 15:34:32 -0700 | [diff] [blame] | 33 | (const ptr_lib::shared_ptr<const Name>&, const ptr_lib::shared_ptr<const Interest>&, Transport&)> OnInterest; |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 34 | |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 35 | /** |
| 36 | * An OnRegisterFailed function object is used to report when registerPrefix fails. |
| 37 | */ |
| 38 | typedef func_lib::function<void(const ptr_lib::shared_ptr<const Name>&)> OnRegisterFailed; |
| 39 | |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 40 | class Face; |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 41 | class KeyChain; |
| 42 | |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 43 | class Node : public ElementListener { |
| 44 | public: |
| 45 | /** |
Jeff Thompson | 10e3438 | 2013-08-22 13:34:46 -0700 | [diff] [blame] | 46 | * Create a new Node for communication with an NDN hub with the given Transport object and connectionInfo. |
| 47 | * @param transport A shared_ptr to a Transport object used for communication. |
| 48 | * @param transport A shared_ptr to a Transport::ConnectionInfo to be used to connect to the transport. |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 49 | */ |
Jeff Thompson | 1656e6a | 2013-08-29 18:01:48 -0700 | [diff] [blame] | 50 | Node(const ptr_lib::shared_ptr<Transport>& transport, const ptr_lib::shared_ptr<const Transport::ConnectionInfo>& connectionInfo); |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 51 | |
| 52 | /** |
Jeff Thompson | 4fe4551 | 2013-08-23 14:06:38 -0700 | [diff] [blame] | 53 | * Send the Interest through the transport, read the entire response and call onData(interest, data). |
| 54 | * @param interest A reference to the Interest. This copies the Interest. |
| 55 | * @param onData A function object to call when a matching data packet is received. This copies the function object, so you may need to |
| 56 | * use func_lib::ref() as appropriate. |
| 57 | * @param onTimeout A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it. |
| 58 | * This copies the function object, so you may need to use func_lib::ref() as appropriate. |
| 59 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 60 | void |
| 61 | expressInterest(const Interest& interest, const OnData& onData, const OnTimeout& onTimeout); |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 62 | |
| 63 | /** |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 64 | * Register prefix with the connected NDN hub and call onInterest when a matching interest is received. |
| 65 | * @param prefix A reference to a Name for the prefix to register. This copies the Name. |
| 66 | * @param onInterest A function object to call when a matching interest is received. This copies the function object, so you may need to |
| 67 | * use func_lib::ref() as appropriate. |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 68 | * @param onRegisterFailed A function object to call if failed to retrieve the connected hub’s ID or failed to register the prefix. |
| 69 | * This calls onRegisterFailed(prefix) where prefix is the prefix given to registerPrefix. |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 70 | * @param flags The flags for finer control of which interests are forward to the application. |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 71 | * @param wireFormat A WireFormat object used to encode the input. If omitted, use WireFormat getDefaultWireFormat(). |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 72 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 73 | void |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 74 | registerPrefix |
Jeff Thompson | 1f8a31a | 2013-09-30 16:18:47 -0700 | [diff] [blame] | 75 | (const Name& prefix, const OnInterest& onInterest, const OnRegisterFailed& onRegisterFailed, const ForwardingFlags& flags, |
| 76 | WireFormat& wireFormat); |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 77 | |
| 78 | /** |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 79 | * Process any data to receive. For each element received, call onReceivedElement. |
| 80 | * This is non-blocking and will return immediately if there is no data to receive. |
| 81 | * You should repeatedly call this from an event loop, with calls to sleep as needed so that the loop doesn't use 100% of the CPU. |
| 82 | * @throw This may throw an exception for reading data or in the callback for processing the data. If you |
| 83 | * call this from an main event loop, you may want to catch and log/disregard all exceptions. |
| 84 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 85 | void |
| 86 | processEvents(); |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 87 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 88 | const ptr_lib::shared_ptr<Transport>& |
| 89 | getTransport() { return transport_; } |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 90 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 91 | const ptr_lib::shared_ptr<const Transport::ConnectionInfo>& |
| 92 | getConnectionInfo() { return connectionInfo_; } |
Jeff Thompson | 10e3438 | 2013-08-22 13:34:46 -0700 | [diff] [blame] | 93 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 94 | void |
Jeff Thompson | 97223af | 2013-09-24 17:01:27 -0700 | [diff] [blame] | 95 | onReceivedElement(const uint8_t *element, size_t elementLength); |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 96 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 97 | void |
| 98 | shutdown(); |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 99 | |
| 100 | private: |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 101 | class PitEntry { |
| 102 | public: |
| 103 | /** |
| 104 | * Create a new PitEntry and set the timeoutTime_ based on the current time and the interest lifetime. |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 105 | * @param interest A shared_ptr for the interest. |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 106 | * @param onData A function object to call when a matching data packet is received. |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 107 | * @param onTimeout A function object to call if the interest times out. If onTimeout is an empty OnTimeout(), this does not use it. |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 108 | */ |
Jeff Thompson | 1656e6a | 2013-08-29 18:01:48 -0700 | [diff] [blame] | 109 | PitEntry(const ptr_lib::shared_ptr<const Interest>& interest, const OnData& onData, const OnTimeout& onTimeout); |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 110 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 111 | const ptr_lib::shared_ptr<const Interest>& |
| 112 | getInterest() { return interest_; } |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 113 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 114 | const OnData& |
| 115 | getOnData() { return onData_; } |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 116 | |
| 117 | /** |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 118 | * Get the struct ndn_Interest for the interest_. |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 119 | * WARNING: Assume that this PitEntry was created with new, so that no copy constructor is invoked between calls. |
| 120 | * This class is private to Node and only used by its methods, so this should be OK. |
| 121 | * TODO: Doesn't this functionality belong in the Interest class? |
| 122 | * @return A reference to the ndn_Interest struct. |
| 123 | * WARNING: The resulting pointers in are invalid uses getInterest() to manipulate the object which could reallocate memory. |
| 124 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 125 | const struct ndn_Interest& |
| 126 | getInterestStruct() |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 127 | { |
| 128 | return interestStruct_; |
| 129 | } |
| 130 | |
| 131 | /** |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 132 | * If this interest is timed out, call onTimeout_ (if defined) and return true. |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 133 | * @param parent The parent Node for the UpcallInfo. |
| 134 | * @param nowMilliseconds The current time in milliseconds from gettimeofday. |
| 135 | * @return true if this interest timed out and the timeout callback was called, otherwise false. |
| 136 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 137 | bool |
| 138 | checkTimeout(Node *parent, double nowMilliseconds); |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 139 | |
| 140 | private: |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 141 | ptr_lib::shared_ptr<const Interest> interest_; |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 142 | std::vector<struct ndn_NameComponent> nameComponents_; |
| 143 | std::vector<struct ndn_ExcludeEntry> excludeEntries_; |
| 144 | struct ndn_Interest interestStruct_; |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 145 | |
Jeff Thompson | 7aec025 | 2013-08-22 17:29:57 -0700 | [diff] [blame] | 146 | const OnData onData_; |
| 147 | const OnTimeout onTimeout_; |
Jeff Thompson | 48917f0 | 2013-08-21 17:12:45 -0700 | [diff] [blame] | 148 | double timeoutTimeMilliseconds_; /**< The time when the interest times out in milliseconds according to gettimeofday, or -1 for no timeout. */ |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 149 | }; |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 150 | |
| 151 | class PrefixEntry { |
| 152 | public: |
| 153 | /** |
| 154 | * Create a new PrefixEntry. |
| 155 | * @param prefix A shared_ptr for the prefix. |
| 156 | * @param onInterest A function object to call when a matching data packet is received. |
| 157 | */ |
Jeff Thompson | 1656e6a | 2013-08-29 18:01:48 -0700 | [diff] [blame] | 158 | PrefixEntry(const ptr_lib::shared_ptr<const Name>& prefix, const OnInterest& onInterest) |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 159 | : prefix_(prefix), onInterest_(onInterest) |
| 160 | { |
| 161 | } |
| 162 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 163 | const ptr_lib::shared_ptr<const Name>& |
| 164 | getPrefix() { return prefix_; } |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 165 | |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 166 | const OnInterest& |
| 167 | getOnInterest() { return onInterest_; } |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 168 | |
| 169 | private: |
| 170 | ptr_lib::shared_ptr<const Name> prefix_; |
| 171 | const OnInterest onInterest_; |
| 172 | }; |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 173 | |
| 174 | /** |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 175 | * An NdndIdFetcher receives the Data packet with the publisher public key digest for the connected NDN hub. |
| 176 | * This class is a function object for the callbacks. It only holds a pointer to an Info object, so it is OK to copy the pointer. |
| 177 | */ |
| 178 | class NdndIdFetcher { |
| 179 | public: |
| 180 | class Info; |
| 181 | NdndIdFetcher(ptr_lib::shared_ptr<NdndIdFetcher::Info> info) |
| 182 | : info_(info) |
| 183 | { |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * We received the ndnd ID. |
| 188 | * @param interest |
| 189 | * @param data |
| 190 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 191 | void |
| 192 | operator()(const ptr_lib::shared_ptr<const Interest>& interest, const ptr_lib::shared_ptr<Data>& ndndIdData); |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 193 | |
| 194 | /** |
| 195 | * We timed out fetching the ndnd ID. |
| 196 | * @param interest |
| 197 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 198 | void |
| 199 | operator()(const ptr_lib::shared_ptr<const Interest>& timedOutInterest); |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 200 | |
| 201 | class Info { |
| 202 | public: |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 203 | Info(Node *node, const Name& prefix, const OnInterest& onInterest, const OnRegisterFailed& onRegisterFailed, |
Jeff Thompson | 1f8a31a | 2013-09-30 16:18:47 -0700 | [diff] [blame] | 204 | const ForwardingFlags& flags, WireFormat& wireFormat) |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 205 | : node_(*node), prefix_(new Name(prefix)), onInterest_(onInterest), onRegisterFailed_(onRegisterFailed), |
Jeff Thompson | 6d7369b | 2013-09-19 14:40:21 -0700 | [diff] [blame] | 206 | flags_(flags), wireFormat_(wireFormat) |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 207 | { |
| 208 | } |
| 209 | |
Jeff Thompson | 1656e6a | 2013-08-29 18:01:48 -0700 | [diff] [blame] | 210 | Node& node_; |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 211 | ptr_lib::shared_ptr<const Name> prefix_; |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 212 | const OnInterest onInterest_; |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 213 | const OnRegisterFailed onRegisterFailed_; |
Jeff Thompson | 1f8a31a | 2013-09-30 16:18:47 -0700 | [diff] [blame] | 214 | ForwardingFlags flags_; |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 215 | WireFormat& wireFormat_; |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 216 | }; |
| 217 | |
| 218 | private: |
| 219 | ptr_lib::shared_ptr<Info> info_; |
| 220 | }; |
| 221 | |
| 222 | /** |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 223 | * Find the entry from the pit_ where the name conforms to the entry's interest selectors, and |
| 224 | * the entry interest name is the longest that matches name. |
| 225 | * @param name The name to find the interest for (from the incoming data packet). |
| 226 | * @return The index in pit_ of the pit entry, or -1 if not found. |
| 227 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 228 | int |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 229 | getEntryIndexForExpressedInterest(const Name& name); |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 230 | |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 231 | /** |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 232 | * Find the first entry from the registeredPrefixTable_ where the entry prefix is the longest that matches name. |
| 233 | * @param name The name to find the PrefixEntry for (from the incoming interest packet). |
| 234 | * @return A pointer to the entry, or 0 if not found. |
| 235 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 236 | PrefixEntry* |
| 237 | getEntryForRegisteredPrefix(const Name& name); |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 238 | |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 239 | /** |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 240 | * Do the work of registerPrefix once we know we are connected with an ndndId_. |
| 241 | * @param prefix |
| 242 | * @param onInterest |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 243 | * @param onRegisterFailed |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 244 | * @param flags |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 245 | * @param wireFormat |
| 246 | */ |
Jeff Thompson | 0050abe | 2013-09-17 12:50:25 -0700 | [diff] [blame] | 247 | void |
Jeff Thompson | 590ec23 | 2013-09-18 15:55:56 -0700 | [diff] [blame] | 248 | registerPrefixHelper |
| 249 | (const ptr_lib::shared_ptr<const Name>& prefix, const OnInterest& onInterest, const OnRegisterFailed& onRegisterFailed, |
Jeff Thompson | 1f8a31a | 2013-09-30 16:18:47 -0700 | [diff] [blame] | 250 | const ForwardingFlags& flags, WireFormat& wireFormat); |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 251 | |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 252 | ptr_lib::shared_ptr<Transport> transport_; |
Jeff Thompson | 10e3438 | 2013-08-22 13:34:46 -0700 | [diff] [blame] | 253 | ptr_lib::shared_ptr<const Transport::ConnectionInfo> connectionInfo_; |
Jeff Thompson | 557b81e | 2013-08-21 15:13:51 -0700 | [diff] [blame] | 254 | std::vector<ptr_lib::shared_ptr<PitEntry> > pit_; |
Jeff Thompson | 9cc4be4 | 2013-08-27 18:12:41 -0700 | [diff] [blame] | 255 | std::vector<ptr_lib::shared_ptr<PrefixEntry> > registeredPrefixTable_; |
Jeff Thompson | 86507bc | 2013-08-23 20:51:38 -0700 | [diff] [blame] | 256 | Interest ndndIdFetcherInterest_; |
Jeff Thompson | 03616c9 | 2013-09-12 14:30:01 -0700 | [diff] [blame] | 257 | Blob ndndId_; |
Jeff Thompson | bf50a1a | 2013-08-20 18:01:01 -0700 | [diff] [blame] | 258 | }; |
| 259 | |
| 260 | } |
| 261 | |
| 262 | #endif |