author | Vedran Miletić <rivanvx@gmail.com> |
Fri, 19 Apr 2013 22:39:55 +0200 | |
changeset 9703 | 681f35b212ff |
parent 8870 | c6ac3b7764e6 |
child 10657 | 6531a8817def |
permissions | -rw-r--r-- |
1175
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
2 |
/* |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
3 |
* Copyright (c) 2006 Georgia Tech Research Corporation, INRIA |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
4 |
* |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
7 |
* published by the Free Software Foundation; |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
8 |
* |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
12 |
* GNU General Public License for more details. |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
13 |
* |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
17 |
* |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
18 |
* Authors: George F. Riley<riley@ece.gatech.edu> |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
19 |
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
20 |
*/ |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
21 |
#ifndef NODE_H |
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
22 |
#define NODE_H |
232
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
23 |
|
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
24 |
#include <vector> |
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
25 |
|
710
2a9c061219a7
port code from Interface to Object
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
607
diff
changeset
|
26 |
#include "ns3/object.h" |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
27 |
#include "ns3/callback.h" |
1866
e7dbcc4df546
do not use Packet objects directly. Use Ptr<Packet> instead
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1412
diff
changeset
|
28 |
#include "ns3/ptr.h" |
3448
0bd851bb1225
Simplify promiscuous mode API: NetDevices always operate in promiscuous mode, normal receive callbacks receive extra destination address and packet type.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3437
diff
changeset
|
29 |
#include "ns3/net-device.h" |
355
d18da75542c7
Add static node factory methods to class Node
Tom Henderson <tomh@tomh.org>
parents:
345
diff
changeset
|
30 |
|
232
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
31 |
namespace ns3 { |
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
32 |
|
585
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
33 |
class Application; |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
34 |
class Packet; |
1186
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
35 |
class Address; |
232
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
36 |
|
2182
13c8ebd1a19e
add application tracing support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1866
diff
changeset
|
37 |
|
13c8ebd1a19e
add application tracing support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1866
diff
changeset
|
38 |
/** |
7149
87514e0d866b
Fix doxygen groups for some new modules
Mitch Watrous <watrous@u.washington.edu>
parents:
6823
diff
changeset
|
39 |
* \ingroup network |
3183 | 40 |
* |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
41 |
* \brief A network Node. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
42 |
* |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
43 |
* This class holds together: |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
44 |
* - a list of NetDevice objects which represent the network interfaces |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
45 |
* of this node which are connected to other Node instances through |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
46 |
* Channel instances. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
47 |
* - a list of Application objects which represent the userspace |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
48 |
* traffic generation applications which interact with the Node |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
49 |
* through the Socket API. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
50 |
* - a node Id: a unique per-node identifier. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
51 |
* - a system Id: a unique Id used for parallel simulations. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
52 |
* |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
53 |
* Every Node created is added to the NodeList automatically. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
54 |
*/ |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
55 |
class Node : public Object |
484
cf7fbb84d74b
rework the Node and NodeList classes to manage reference counts correctly
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
482
diff
changeset
|
56 |
{ |
512
5404e1e41f82
make Node derive from NsUnknown rather than Object
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
484
diff
changeset
|
57 |
public: |
2251
04963d8cca51
iid (void) -> GetTypeId (void)
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2250
diff
changeset
|
58 |
static TypeId GetTypeId (void); |
361
9b159ff6dbcb
Clean up parameter passing per TOm's request
George F. Riley<riley@ece.gatech.edu>
parents:
359
diff
changeset
|
59 |
|
1186
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
60 |
Node(); |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
61 |
/** |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
62 |
* \param systemId a unique integer used for parallel simulations. |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
63 |
*/ |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
64 |
Node(uint32_t systemId); |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
65 |
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
66 |
virtual ~Node(); |
244
caff04d90a66
remove SetNodeId and implement GetId and GetSystemId
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
242
diff
changeset
|
67 |
|
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
68 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
69 |
* \returns the unique id of this node. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
70 |
* |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
71 |
* This unique id happens to be also the index of the Node into |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
72 |
* the NodeList. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
73 |
*/ |
244
caff04d90a66
remove SetNodeId and implement GetId and GetSystemId
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
242
diff
changeset
|
74 |
uint32_t GetId (void) const; |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
75 |
|
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
76 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
77 |
* \returns the system id for parallel simulations associated |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
78 |
* to this node. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
79 |
*/ |
244
caff04d90a66
remove SetNodeId and implement GetId and GetSystemId
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
242
diff
changeset
|
80 |
uint32_t GetSystemId (void) const; |
232
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
81 |
|
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
82 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
83 |
* \param device NetDevice to associate to this node. |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
84 |
* \returns the index of the NetDevice into the Node's list of |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
85 |
* NetDevice. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
86 |
* |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
87 |
* Associate this device to this node. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
88 |
*/ |
568
e1660959ecbb
use Ptr<> everywhere Object or NsUnknown are used
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
525
diff
changeset
|
89 |
uint32_t AddDevice (Ptr<NetDevice> device); |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
90 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
91 |
* \param index the index of the requested NetDevice |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
92 |
* \returns the requested NetDevice associated to this Node. |
1186
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
93 |
* |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
94 |
* The indexes used by the GetDevice method start at one and |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
95 |
* end at GetNDevices () |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
96 |
*/ |
568
e1660959ecbb
use Ptr<> everywhere Object or NsUnknown are used
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
525
diff
changeset
|
97 |
Ptr<NetDevice> GetDevice (uint32_t index) const; |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
98 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
99 |
* \returns the number of NetDevice instances associated |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
100 |
* to this Node. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
101 |
*/ |
447
180117abfb04
add NetDevice list into Node base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
381
diff
changeset
|
102 |
uint32_t GetNDevices (void) const; |
180117abfb04
add NetDevice list into Node base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
381
diff
changeset
|
103 |
|
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
104 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
105 |
* \param application Application to associate to this node. |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
106 |
* \returns the index of the Application within the Node's list |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
107 |
* of Application. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
108 |
* |
7559
26d96687bb3b
updated doxygen of Node::AddApplication (Ptr<Application>)
Nicola Baldo <nbaldo@cttc.es>
parents:
7386
diff
changeset
|
109 |
* Associated this Application to this Node. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
110 |
*/ |
585
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
111 |
uint32_t AddApplication (Ptr<Application> application); |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
112 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
113 |
* \param index |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
114 |
* \returns the application associated to this requested index |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
115 |
* within this Node. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
116 |
*/ |
585
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
117 |
Ptr<Application> GetApplication (uint32_t index) const; |
3380 | 118 |
|
119 |
/** |
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
120 |
* \returns the number of applications associated to this Node. |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
121 |
*/ |
585
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
122 |
uint32_t GetNApplications (void) const; |
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
123 |
|
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
124 |
/** |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
125 |
* A protocol handler |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
126 |
* |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
127 |
* \param device a pointer to the net device which received the packet |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
128 |
* \param packet the packet received |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
129 |
* \param protocol the 16 bit protocol number associated with this packet. |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
130 |
* This protocol number is expected to be the same protocol number |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
131 |
* given to the Send method by the user on the sender side. |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
132 |
* \param sender the address of the sender |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
133 |
* \param receiver the address of the receiver; Note: this value is |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
134 |
* only valid for promiscuous mode protocol |
6526
1f6962c1083c
Change NonPromiscReceiveFromDevice per bug 949.
Craig Dowell <craigdo@ee.washington.edu>
parents:
5524
diff
changeset
|
135 |
* handlers. Note: If the L2 protocol does not use L2 |
1f6962c1083c
Change NonPromiscReceiveFromDevice per bug 949.
Craig Dowell <craigdo@ee.washington.edu>
parents:
5524
diff
changeset
|
136 |
* addresses, the address reported here is the value of |
1f6962c1083c
Change NonPromiscReceiveFromDevice per bug 949.
Craig Dowell <craigdo@ee.washington.edu>
parents:
5524
diff
changeset
|
137 |
* device->GetAddress(). |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
138 |
* \param packetType type of packet received |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
139 |
* (broadcast/multicast/unicast/otherhost); Note: |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
140 |
* this value is only valid for promiscuous mode |
7182
5ecfee5d17de
network coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
7149
diff
changeset
|
141 |
* protocol handlers. |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
142 |
*/ |
3548
e5ab96db540e
bug 273: constify packet pointers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3516
diff
changeset
|
143 |
typedef Callback<void,Ptr<NetDevice>, Ptr<const Packet>,uint16_t,const Address &, |
3448
0bd851bb1225
Simplify promiscuous mode API: NetDevices always operate in promiscuous mode, normal receive callbacks receive extra destination address and packet type.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3437
diff
changeset
|
144 |
const Address &, NetDevice::PacketType> ProtocolHandler; |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
145 |
/** |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
146 |
* \param handler the handler to register |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
147 |
* \param protocolType the type of protocol this handler is |
1186
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
148 |
* interested in. This protocol type is a so-called |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
149 |
* EtherType, as registered here: |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
150 |
* http://standards.ieee.org/regauth/ethertype/eth.txt |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
151 |
* the value zero is interpreted as matching all |
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
152 |
* protocols. |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
153 |
* \param device the device attached to this handler. If the |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
154 |
* value is zero, the handler is attached to all |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
155 |
* devices on this node. |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
156 |
* \param promiscuous whether to register a promiscuous mode handler |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
157 |
*/ |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
158 |
void RegisterProtocolHandler (ProtocolHandler handler, |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
159 |
uint16_t protocolType, |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
160 |
Ptr<NetDevice> device, |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
161 |
bool promiscuous=false); |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
162 |
/** |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
163 |
* \param handler the handler to unregister |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
164 |
* |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
165 |
* After this call returns, the input handler will never |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
166 |
* be invoked anymore. |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
167 |
*/ |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
168 |
void UnregisterProtocolHandler (ProtocolHandler handler); |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
169 |
|
7352
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
170 |
/** |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
171 |
* A callback invoked whenever a device is added to a node. |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
172 |
*/ |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
173 |
typedef Callback<void,Ptr<NetDevice> > DeviceAdditionListener; |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
174 |
/** |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
175 |
* \param listener the listener to add |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
176 |
* |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
177 |
* Add a new listener to the list of listeners for the device-added |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
178 |
* event. When a new listener is added, it is notified of the existance |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
179 |
* of all already-added devices to make discovery of devices easier. |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
180 |
*/ |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
181 |
void RegisterDeviceAdditionListener (DeviceAdditionListener listener); |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
182 |
/** |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
183 |
* \param listener the listener to remove |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
184 |
* |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
185 |
* Remove an existing listener from the list of listeners for the |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
186 |
* device-added event. |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
187 |
*/ |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
188 |
void UnregisterDeviceAdditionListener (DeviceAdditionListener listener); |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
189 |
|
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
190 |
|
7182
5ecfee5d17de
network coding style changes
Josh Pelkey <jpelkey@gatech.edu>
parents:
7149
diff
changeset
|
191 |
|
4558
31e9053749bb
bug 491: It is painful to enable all checksums
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3548
diff
changeset
|
192 |
/** |
31e9053749bb
bug 491: It is painful to enable all checksums
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3548
diff
changeset
|
193 |
* \returns true if checksums are enabled, false otherwise. |
31e9053749bb
bug 491: It is painful to enable all checksums
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3548
diff
changeset
|
194 |
*/ |
31e9053749bb
bug 491: It is painful to enable all checksums
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3548
diff
changeset
|
195 |
static bool ChecksumEnabled (void); |
31e9053749bb
bug 491: It is painful to enable all checksums
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3548
diff
changeset
|
196 |
|
3435
1d704c128f1f
Sketching a new promiscuous mode protocol handlers API; Netdevices implementation missing, though.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3308
diff
changeset
|
197 |
|
513
b7c7ea629de9
make L3Demux an NsUnknown object.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
512
diff
changeset
|
198 |
protected: |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
199 |
/** |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
200 |
* The dispose method. Subclasses must override this method |
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
201 |
* and must chain up to it by calling Node::DoDispose at the |
595
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
202 |
* end of their own DoDispose method. |
3e77d7b90b9c
add dox documentation for Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
594
diff
changeset
|
203 |
*/ |
513
b7c7ea629de9
make L3Demux an NsUnknown object.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
512
diff
changeset
|
204 |
virtual void DoDispose (void); |
9703
681f35b212ff
Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Miletić <rivanvx@gmail.com>
parents:
8870
diff
changeset
|
205 |
virtual void DoInitialize (void); |
447
180117abfb04
add NetDevice list into Node base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
381
diff
changeset
|
206 |
private: |
7352
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
207 |
void NotifyDeviceAdded (Ptr<NetDevice> device); |
3548
e5ab96db540e
bug 273: constify packet pointers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3516
diff
changeset
|
208 |
bool NonPromiscReceiveFromDevice (Ptr<NetDevice> device, Ptr<const Packet>, uint16_t protocol, const Address &from); |
e5ab96db540e
bug 273: constify packet pointers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3516
diff
changeset
|
209 |
bool PromiscReceiveFromDevice (Ptr<NetDevice> device, Ptr<const Packet>, uint16_t protocol, |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
210 |
const Address &from, const Address &to, NetDevice::PacketType packetType); |
3548
e5ab96db540e
bug 273: constify packet pointers.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3516
diff
changeset
|
211 |
bool ReceiveFromDevice (Ptr<NetDevice> device, Ptr<const Packet>, uint16_t protocol, |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
212 |
const Address &from, const Address &to, NetDevice::PacketType packetType, bool promisc); |
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
213 |
|
1186
909e9eb2124e
rework the NetDevice <-> Node interface
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1176
diff
changeset
|
214 |
void Construct (void); |
447
180117abfb04
add NetDevice list into Node base class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
381
diff
changeset
|
215 |
|
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
216 |
struct ProtocolHandlerEntry { |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
217 |
ProtocolHandler handler; |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
218 |
Ptr<NetDevice> device; |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
219 |
uint16_t protocol; |
3460
99698bc858e8
New API considering comments from Craig: NetDevice->Node uses two callbacks; Node->ProtocolHandlers uses a single API with a promiscuous flag.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3450
diff
changeset
|
220 |
bool promiscuous; |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
221 |
}; |
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
222 |
typedef std::vector<struct Node::ProtocolHandlerEntry> ProtocolHandlerList; |
7352
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
223 |
typedef std::vector<DeviceAdditionListener> DeviceAdditionListenerList; |
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
224 |
|
728
95c426b1cb60
rename INode to Node
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
710
diff
changeset
|
225 |
uint32_t m_id; // Node id for this node |
244
caff04d90a66
remove SetNodeId and implement GetId and GetSystemId
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
242
diff
changeset
|
226 |
uint32_t m_sid; // System id for this node |
568
e1660959ecbb
use Ptr<> everywhere Object or NsUnknown are used
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
525
diff
changeset
|
227 |
std::vector<Ptr<NetDevice> > m_devices; |
585
a009b03b720a
remove ApplicationList. Move functionality to Node class
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
580
diff
changeset
|
228 |
std::vector<Ptr<Application> > m_applications; |
1176
4894ea885c0f
implement the Node::ProtocolHandler support.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1175
diff
changeset
|
229 |
ProtocolHandlerList m_handlers; |
7352
e440347eff27
bug 1091: replace virtual method with callbacks.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
7182
diff
changeset
|
230 |
DeviceAdditionListenerList m_deviceAdditionListeners; |
232
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
231 |
}; |
8cd08910f9a1
initial node base class from george's repo.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
232 |
|
7386
2310ed220a61
standardize ns-3 namespace declaration format
Vedran Miletić <rivanvx@gmail.com>
parents:
7352
diff
changeset
|
233 |
} // namespace ns3 |
605
3a62e5c4de75
rename internet-node.h to i-node-impl.h
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
604
diff
changeset
|
234 |
|
1175
00ad4ec69939
small cleanups
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
936
diff
changeset
|
235 |
#endif /* NODE_H */ |