blob: 792ef4dabddedf71b8ef4b56984a2923568a4348 [file] [log] [blame]
Alexander Afanasyevc74a6022011-08-15 20:01:35 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
Alexander Afanasyev98256102011-08-14 01:00:02 -07002/*
3 * Copyright (c) 2005,2006,2007 INRIA
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 * Authors:
19 */
20#ifndef CCNX_LOCAL_FACE_H
21#define CCNX_LOCAL_FACE_H
22
23#include "ccnx-face.h"
24
25namespace ns3 {
26
Alexander Afanasyev98256102011-08-14 01:00:02 -070027/**
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070028 * \ingroup ccnx-face
29 * \brief Implementation of application CCNx face
Alexander Afanasyev98256102011-08-14 01:00:02 -070030 *
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070031 * This class defines basic functionality of CCNx face. Face is core
32 * component responsible for actual delivery of data packet to and
33 * from CCNx stack
Alexander Afanasyev98256102011-08-14 01:00:02 -070034 *
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070035 * \see CcnxLocalFace, CcnxNetDeviceFace, CcnxIpv4Face, CcnxUdpFace
Alexander Afanasyev98256102011-08-14 01:00:02 -070036 */
37class CcnxLocalFace : public CcnxFace
38{
39public:
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070040 /**
41 * \brief Interface ID
42 *
43 * \return interface ID
44 */
Alexander Afanasyev98256102011-08-14 01:00:02 -070045 static TypeId GetTypeId (void);
46
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070047 /**
48 * \brief Default constructor
49 */
Alexander Afanasyev98256102011-08-14 01:00:02 -070050 CcnxLocalFace ();
51 virtual ~CcnxLocalFace();
Alexander Afanasyev98256102011-08-14 01:00:02 -070052
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070053 ////////////////////////////////////////////////////////////////////
54 // methods overloaded from CcnxFace
55
56 virtual void RegisterProtocolHandler (ProtocolHandler handler);
57
Alexander Afanasyev98256102011-08-14 01:00:02 -070058 virtual void Send (Ptr<Packet> p);
59
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070060 ////////////////////////////////////////////////////////////////////
61
62 /// \todo Need methods to implement application hooks
63
Alexander Afanasyev98256102011-08-14 01:00:02 -070064protected:
65 virtual void DoDispose (void);
66
67private:
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070068 CcnxLocalFace (const CcnxLocalFace &); ///< \brief Disabled copy constructor
69 CcnxLocalFace& operator= (const CcnxLocalFace &); ///< \brief Disabled copy operator
Alexander Afanasyev98256102011-08-14 01:00:02 -070070};
71
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070072std::ostream& operator<< (std::ostream& os, const CcnxLocalFace &localFace);
Alexander Afanasyev98256102011-08-14 01:00:02 -070073
74} // namespace ns3
75
76#endif