blob: 350095a2159447291eadde0f5882e7c5c00edff4 [file] [log] [blame]
Alexander Afanasyev404c0792011-08-09 17:09:59 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011 University of California, Los Angeles
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Ilya Moiseenko <iliamo@cs.ucla.edu>
19 */
20
21#include "interest-packet.h"
22
23namespace ns3
24{
25namespace NDNabstraction
26{
27 InterestPacket::InterestPacket ()
28 {
29 }
30 // InterestPacket::InterestPacket(const unsigned char *name, uint32_t size)
31 // :Packet(name,size)
32 // {
33 // maxNameLength = 10240;
34 // }
35
36 // uint32_t
37 // InterestPacket::GetName(unsigned char *name)
38 // {
39 // //uint32_t Packet::CopyData (uint8_t *buffer, uint32_t size) const
40 // return CopyData((uint8_t*) name, maxNameLength);
41 // }
42
43 // void
44 // InterestPacket::AddTimeout(uint32_t milliseconds)
45 // {
46 // TimeoutHeader tHeader (milliseconds);
47 // AddHeader (tHeader);
48 // }
49
50 // uint32_t
51 // InterestPacket::GetTimeout(void)
52 // {
53 // TimeoutHeader tHeader;
54 // PeekHeader(tHeader);
55 // return tHeader.GetValue();
56 // }
57
58 // void
59 // InterestPacket::RemoveTimeout(void)
60 // {
61 // TimeoutHeader tHeader;
62 // RemoveHeader(tHeader);
63 // }
64
65 // void
66 // InterestPacket::AddNonce(uint32_t nonce)
67 // {
68 // NonceHeader tHeader (nonce);
69 // AddHeader (tHeader);
70 // }
71
72 // uint32_t
73 // InterestPacket::GetNonce(void)
74 // {
75 // NonceHeader tHeader;
76 // PeekHeader(tHeader);
77 // return tHeader.GetValue();
78 // }
79
80 // void
81 // InterestPacket::RemoveNonce(void)
82 // {
83 // NonceHeader tHeader;
84 // RemoveHeader(tHeader);
85 // }
86}
87}