blob: 26df5901bcad4380aa2b88192687c8c1f282464f [file] [log] [blame]
Alexander Afanasyev79a5bd62013-06-23 22:12:39 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2013 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: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19 */
20
21#ifndef NDN_EXAMPLES_API_APP_H
22#define NDN_EXAMPLES_API_APP_H
23
24#include "ns3/core-module.h"
25#include "ns3/network-module.h"
26#include "ns3/ndnSIM-module.h"
27
28#include "ns3/ndnSIM/ndn.cxx/ndn-handler.h"
29
30namespace ns3 {
31namespace ndn {
32
33class ApiApp : public Application
34{
35public:
36 static TypeId
37 GetTypeId ();
38
39 ApiApp ();
40
41private:
42 void
43 RequestData ();
44
45protected:
46 // inherited from Application base class.
47 virtual void
48 StartApplication ();
49
50 virtual void
51 StopApplication ();
52
53private:
54 Ptr<Handler> m_handler;
55};
56
57} // namespace ndn
58} // namespace ns3
59
60#endif // NDN_EXAMPLES_API_APP_H