Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 1 | /** -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Alexander Afanasyev |
| 5 | * |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 6 | * GNU 3.0 license, See the LICENSE file for more information |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 7 | * |
| 8 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #include "ndnsim.h" |
| 12 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 13 | using namespace std; |
| 14 | |
| 15 | #include <ns3/header.h> |
| 16 | #include <ns3/packet.h> |
| 17 | #include <ns3/log.h> |
| 18 | |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 19 | #include "ndnsim/wire-ndnsim.h" |
| 20 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 21 | NS_LOG_COMPONENT_DEFINE ("ndn.wire.ndnSIM"); |
| 22 | |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 23 | NDN_NAMESPACE_BEGIN |
| 24 | |
| 25 | namespace wire { |
| 26 | namespace ndnSIM { |
| 27 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 28 | NS_OBJECT_ENSURE_REGISTERED (Interest); |
| 29 | NS_OBJECT_ENSURE_REGISTERED (Data); |
| 30 | |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 31 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 32 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 33 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 34 | |
| 35 | Interest::Interest () |
| 36 | : m_interest (Create<ndn::Interest> ()) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | Interest::Interest (Ptr<ndn::Interest> interest) |
| 41 | : m_interest (interest) |
| 42 | { |
| 43 | } |
| 44 | |
| 45 | Ptr<ndn::Interest> |
| 46 | Interest::GetInterest () |
| 47 | { |
| 48 | return m_interest; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | TypeId |
| 53 | Interest::GetTypeId (void) |
| 54 | { |
| 55 | static TypeId tid = TypeId ("ns3::ndn::Interest::ndnSIM") |
| 56 | .SetGroupName ("Ndn") |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 57 | .SetParent<Header> () |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 58 | .AddConstructor<Interest> () |
| 59 | ; |
| 60 | return tid; |
| 61 | } |
| 62 | |
| 63 | TypeId |
| 64 | Interest::GetInstanceTypeId (void) const |
| 65 | { |
| 66 | return GetTypeId (); |
| 67 | } |
| 68 | |
| 69 | Ptr<Packet> |
| 70 | Interest::ToWire (Ptr<const ndn::Interest> interest) |
| 71 | { |
| 72 | Ptr<const Packet> p = interest->GetWire (); |
| 73 | if (!p) |
| 74 | { |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 75 | Ptr<Packet> packet = Create<Packet> (*interest->GetPayload ()); |
| 76 | Interest wireEncoding (ConstCast<ndn::Interest> (interest)); |
| 77 | packet->AddHeader (wireEncoding); |
| 78 | interest->SetWire (packet); |
| 79 | |
| 80 | p = packet; |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | return p->Copy (); |
| 84 | } |
| 85 | |
| 86 | Ptr<ndn::Interest> |
| 87 | Interest::FromWire (Ptr<Packet> packet) |
| 88 | { |
| 89 | Ptr<ndn::Interest> interest = Create<ndn::Interest> (); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 90 | interest->SetWire (packet->Copy ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 91 | |
| 92 | Interest wireEncoding (interest); |
| 93 | packet->RemoveHeader (wireEncoding); |
| 94 | |
| 95 | interest->SetPayload (packet); |
| 96 | |
| 97 | return interest; |
| 98 | } |
| 99 | |
| 100 | uint32_t |
| 101 | Interest::GetSerializedSize (void) const |
| 102 | { |
| 103 | size_t size = |
| 104 | 1/*version*/ + 1 /*type*/ + 2/*length*/ + |
| 105 | (4/*nonce*/ + 1/*scope*/ + 1/*nack type*/ + 2/*timestamp*/ + |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 106 | NdnSim::SerializedSizeName (m_interest->GetName ()) + |
Alexander Afanasyev | abb493a | 2013-07-19 15:31:33 -0700 | [diff] [blame] | 107 | |
| 108 | (2 + |
| 109 | (m_interest->GetExclude () == 0 ? 0 : (1 + NdnSim::SerializedSizeExclude (*m_interest->GetExclude ()))) |
| 110 | )/* selectors */ + |
| 111 | |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 112 | (2 + 0)/* options */); |
| 113 | |
| 114 | NS_LOG_INFO ("Serialize size = " << size); |
| 115 | return size; |
| 116 | } |
| 117 | |
| 118 | void |
| 119 | Interest::Serialize (Buffer::Iterator start) const |
| 120 | { |
| 121 | start.WriteU8 (0x80); // version |
| 122 | start.WriteU8 (0x00); // packet type |
| 123 | |
| 124 | start.WriteU16 (GetSerializedSize () - 4); |
| 125 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 126 | start.WriteU32 (m_interest->GetNonce ()); |
| 127 | start.WriteU8 (m_interest->GetScope ()); |
| 128 | start.WriteU8 (m_interest->GetNack ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 129 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 130 | NS_ASSERT_MSG (0 <= m_interest->GetInterestLifetime ().ToInteger (Time::S) && m_interest->GetInterestLifetime ().ToInteger (Time::S) < 65535, |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 131 | "Incorrect InterestLifetime (should not be smaller than 0 and larger than 65535"); |
| 132 | |
| 133 | // rounding timestamp value to seconds |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 134 | start.WriteU16 (static_cast<uint16_t> (m_interest->GetInterestLifetime ().ToInteger (Time::S))); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 135 | |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 136 | NdnSim::SerializeName (start, m_interest->GetName ()); |
Alexander Afanasyev | abb493a | 2013-07-19 15:31:33 -0700 | [diff] [blame] | 137 | |
| 138 | if (m_interest->GetExclude () == 0) |
| 139 | { |
| 140 | start.WriteU16 (0); // no selectors |
| 141 | } |
| 142 | else |
| 143 | { |
| 144 | start.WriteU16 (1 + NdnSim::SerializedSizeExclude (*m_interest->GetExclude ())); |
| 145 | start.WriteU8 (0x01); |
| 146 | NdnSim::SerializeExclude (start, *m_interest->GetExclude ()); |
| 147 | } |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 148 | |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 149 | start.WriteU16 (0); // no options |
| 150 | } |
| 151 | |
| 152 | uint32_t |
| 153 | Interest::Deserialize (Buffer::Iterator start) |
| 154 | { |
| 155 | Buffer::Iterator i = start; |
| 156 | |
| 157 | if (i.ReadU8 () != 0x80) |
| 158 | throw new InterestException (); |
| 159 | |
| 160 | if (i.ReadU8 () != 0x00) |
| 161 | throw new InterestException (); |
| 162 | |
| 163 | i.ReadU16 (); // length, don't need it right now |
| 164 | |
| 165 | m_interest->SetNonce (i.ReadU32 ()); |
| 166 | m_interest->SetScope (i.ReadU8 ()); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 167 | m_interest->SetNack (i.ReadU8 ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 168 | |
| 169 | m_interest->SetInterestLifetime (Seconds (i.ReadU16 ())); |
| 170 | |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 171 | m_interest->SetName (NdnSim::DeserializeName (i)); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 172 | |
Alexander Afanasyev | abb493a | 2013-07-19 15:31:33 -0700 | [diff] [blame] | 173 | uint32_t selectorsLen = i.ReadU16 (); |
| 174 | if (selectorsLen > 0) |
| 175 | { |
| 176 | if (i.ReadU8 () != 0x01) // exclude filter only |
| 177 | throw InterestException (); |
| 178 | |
| 179 | m_interest->SetExclude (NdnSim::DeserializeExclude (i)); |
| 180 | } |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 181 | i.ReadU16 (); |
| 182 | |
| 183 | NS_ASSERT (GetSerializedSize () == (i.GetDistanceFrom (start))); |
| 184 | |
| 185 | return i.GetDistanceFrom (start); |
| 186 | } |
| 187 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 188 | void |
| 189 | Interest::Print (std::ostream &os) const |
| 190 | { |
| 191 | m_interest->Print (os); |
| 192 | } |
| 193 | |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 194 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 195 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 196 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 197 | |
| 198 | |
| 199 | TypeId |
| 200 | Data::GetTypeId (void) |
| 201 | { |
| 202 | static TypeId tid = TypeId ("ns3::ndn::Data::ndnSIM") |
| 203 | .SetGroupName ("Ndn") |
| 204 | .SetParent<Header> () |
| 205 | .AddConstructor<Data> () |
| 206 | ; |
| 207 | return tid; |
| 208 | } |
| 209 | |
| 210 | TypeId |
| 211 | Data::GetInstanceTypeId (void) const |
| 212 | { |
| 213 | return GetTypeId (); |
| 214 | } |
| 215 | |
| 216 | |
| 217 | Data::Data () |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 218 | : m_data (Create<ndn::Data> ()) |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 219 | { |
| 220 | } |
| 221 | |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 222 | Data::Data (Ptr<ndn::Data> data) |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 223 | : m_data (data) |
| 224 | { |
| 225 | } |
| 226 | |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 227 | Ptr<ndn::Data> |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 228 | Data::GetData () |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 229 | { |
| 230 | return m_data; |
| 231 | } |
| 232 | |
| 233 | Ptr<Packet> |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 234 | Data::ToWire (Ptr<const ndn::Data> data) |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 235 | { |
| 236 | Ptr<const Packet> p = data->GetWire (); |
| 237 | if (!p) |
| 238 | { |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 239 | Ptr<Packet> packet = Create<Packet> (*data->GetPayload ()); |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 240 | Data wireEncoding (ConstCast<ndn::Data> (data)); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 241 | packet->AddHeader (wireEncoding); |
| 242 | data->SetWire (packet); |
| 243 | |
| 244 | p = packet; |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | return p->Copy (); |
| 248 | } |
| 249 | |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 250 | Ptr<ndn::Data> |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 251 | Data::FromWire (Ptr<Packet> packet) |
| 252 | { |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 253 | Ptr<ndn::Data> data = Create<ndn::Data> (); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 254 | data->SetWire (packet->Copy ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 255 | |
| 256 | Data wireEncoding (data); |
| 257 | packet->RemoveHeader (wireEncoding); |
| 258 | |
| 259 | data->SetPayload (packet); |
| 260 | |
| 261 | return data; |
| 262 | } |
| 263 | |
| 264 | uint32_t |
| 265 | Data::GetSerializedSize () const |
| 266 | { |
| 267 | uint32_t size = 1 + 1 + 2 + |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 268 | ((2 + 2) + |
| 269 | NdnSim::SerializedSizeName (m_data->GetName ()) + |
| 270 | (2 + 2 + 4 + 2 + 2 + (2 + 0))); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 271 | if (m_data->GetSignature () != 0) |
| 272 | size += 4; |
| 273 | |
| 274 | NS_LOG_INFO ("Serialize size = " << size); |
| 275 | return size; |
| 276 | } |
| 277 | |
| 278 | void |
| 279 | Data::Serialize (Buffer::Iterator start) const |
| 280 | { |
| 281 | start.WriteU8 (0x80); // version |
| 282 | start.WriteU8 (0x01); // packet type |
| 283 | start.WriteU16 (GetSerializedSize () - 4); // length |
| 284 | |
| 285 | if (m_data->GetSignature () != 0) |
| 286 | { |
| 287 | start.WriteU16 (6); // signature length |
| 288 | start.WriteU16 (0xFF00); // "fake" simulator signature |
| 289 | start.WriteU32 (m_data->GetSignature ()); |
| 290 | } |
| 291 | else |
| 292 | { |
| 293 | start.WriteU16 (2); // signature length |
| 294 | start.WriteU16 (0); // empty signature |
| 295 | } |
| 296 | |
| 297 | // name |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 298 | NdnSim::SerializeName (start, m_data->GetName ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 299 | |
| 300 | // content |
| 301 | // for now assume that contentdata length is zero |
| 302 | start.WriteU16 (2 + 4 + 2 + 2 + (2 + 0)); |
| 303 | start.WriteU16 (4 + 2 + 2 + (2 + 0)); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 304 | start.WriteU32 (static_cast<uint32_t> (m_data->GetTimestamp ().ToInteger (Time::S))); |
| 305 | start.WriteU16 (static_cast<uint16_t> (m_data->GetFreshness ().ToInteger (Time::S))); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 306 | start.WriteU16 (0); // reserved |
| 307 | start.WriteU16 (0); // Length (ContentInfoOptions) |
| 308 | |
| 309 | // that's it folks |
| 310 | } |
| 311 | |
| 312 | uint32_t |
| 313 | Data::Deserialize (Buffer::Iterator start) |
| 314 | { |
| 315 | Buffer::Iterator i = start; |
| 316 | |
| 317 | if (i.ReadU8 () != 0x80) |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 318 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 319 | |
| 320 | if (i.ReadU8 () != 0x01) |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 321 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 322 | |
| 323 | i.ReadU16 (); // length |
| 324 | |
| 325 | uint32_t signatureLength = i.ReadU16 (); |
| 326 | if (signatureLength == 6) |
| 327 | { |
| 328 | if (i.ReadU16 () != 0xFF00) // signature type |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 329 | throw new DataException (); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 330 | m_data->SetSignature (i.ReadU32 ()); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 331 | } |
| 332 | else if (signatureLength == 2) |
| 333 | { |
| 334 | if (i.ReadU16 () != 0) // signature type |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 335 | throw new DataException (); |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 336 | m_data->SetSignature (0); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 337 | } |
| 338 | else |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 339 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 340 | |
Alexander Afanasyev | a89bc10 | 2013-07-16 10:17:31 -0700 | [diff] [blame] | 341 | m_data->SetName (NdnSim::DeserializeName (i)); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 342 | |
| 343 | if (i.ReadU16 () != (2 + 4 + 2 + 2 + (2 + 0))) // content length |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 344 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 345 | |
| 346 | if (i.ReadU16 () != (4 + 2 + 2 + (2 + 0))) // Length (content Info) |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 347 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 348 | |
| 349 | m_data->SetTimestamp (Seconds (i.ReadU32 ())); |
| 350 | m_data->SetFreshness (Seconds (i.ReadU16 ())); |
| 351 | |
| 352 | if (i.ReadU16 () != 0) // Reserved |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 353 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 354 | if (i.ReadU16 () != 0) // Length (ContentInfoOptions) |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 355 | throw new DataException (); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 356 | |
| 357 | NS_ASSERT_MSG (i.GetDistanceFrom (start) == GetSerializedSize (), |
Alexander Afanasyev | 772f51b | 2013-08-01 18:53:25 -0700 | [diff] [blame^] | 358 | "Something wrong with Data::Deserialize"); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 359 | |
| 360 | return i.GetDistanceFrom (start); |
| 361 | } |
| 362 | |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 363 | void |
| 364 | Data::Print (std::ostream &os) const |
| 365 | { |
| 366 | m_data->Print (os); |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 367 | } |
Alexander Afanasyev | faa01f9 | 2013-07-10 18:34:31 -0700 | [diff] [blame] | 368 | |
| 369 | } // ndnSIM |
| 370 | } // wire |
Alexander Afanasyev | b989b12 | 2013-07-10 17:15:46 -0700 | [diff] [blame] | 371 | |
| 372 | NDN_NAMESPACE_END |