blob: df04403a1b00d7b892020fa6aec34745278b74d5 [file] [log] [blame]
Alexander Afanasyev6b997c52011-08-08 12:55:25 -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 */
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070020
Alexander Afanasyev404c0792011-08-09 17:09:59 -070021#ifndef _INTEREST_PACKET_H_
22#define _INTEREST_PACKET_H_
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070023
24//#define CCN_INTEREST_LIFETIME_SEC 4
25//#define CCN_INTEREST_LIFETIME_MICROSEC (CCN_INTEREST_LIFETIME_SEC * 1000000)
26
Alexander Afanasyev404c0792011-08-09 17:09:59 -070027#include <ns3/header.h>
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070028#include <ns3/packet.h>
Ilya Moiseenko5881eb12011-08-04 19:05:26 -070029#include <string>
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070030
31namespace ns3
32{
Ilya Moiseenko5881eb12011-08-04 19:05:26 -070033namespace NDNabstraction
34{
Alexander Afanasyevf583ef22011-08-08 19:05:28 -070035
Alexander Afanasyev404c0792011-08-09 17:09:59 -070036class InterestPacket : public Packet
37{
38public:
39 InterestPacket( );
40 // InterestPacket (const unsigned char *name, uint32_t size);
41
42
43 // uint32_t GetName (unsigned char *name);
44
45 // void AddTimeout (uint32_t milliseconds);
46 // uint32_t GetTimeout (void);
47 // void RemoveTimeout (void);
48
49 // void AddNonce (uint32_t nonce);
50 // uint32_t GetNonce (void);
51 // void RemoveNonce (void);
52
53 // uint32_t maxNameLength;
54
55};
Alexander Afanasyevf583ef22011-08-08 19:05:28 -070056
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070057}
Ilya Moiseenko5881eb12011-08-04 19:05:26 -070058}
Ilya Moiseenko08a98a42011-08-02 16:06:51 -070059
Alexander Afanasyev404c0792011-08-09 17:09:59 -070060#endif // _NDN_PACKET_H_