author | Craig Dowell <craigdo@ee.washington.edu> |
Tue, 20 Jan 2009 17:39:18 -0800 | |
changeset 4140 | 6bbf05bf4826 |
parent 3848 | affd0834debc |
permissions | -rw-r--r-- |
3848
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
2 |
/* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
3 |
* Copyright (c) 2008 INRIA |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
4 |
* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
7 |
* published by the Free Software Foundation; |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
8 |
* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
12 |
* GNU General Public License for more details. |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
13 |
* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
17 |
* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
19 |
*/ |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
20 |
|
2736
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
21 |
#ifndef PACKET_SOCKET_HELPER_H |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
22 |
#define PACKET_SOCKET_HELPER_H |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
23 |
|
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
24 |
#include "ns3/node-container.h" |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
25 |
|
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
26 |
namespace ns3 { |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
27 |
|
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
28 |
/** |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
29 |
* \brief Give ns3::PacketSocket powers to ns3::Node. |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
30 |
*/ |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
31 |
class PacketSocketHelper |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
32 |
{ |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
33 |
public: |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
34 |
/** |
3848
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
35 |
* Aggregate an instance of a ns3::PacketSocketFactory onto the provided |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
36 |
* node. |
2736
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
37 |
* |
3848
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
38 |
* \param node Node on which to aggregate the ns3::PacketSocketFactory. |
2736
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
39 |
*/ |
3848
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
40 |
void Install (Ptr<Node> node) const; |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
41 |
|
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
42 |
/** |
4140
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
43 |
* Aggregate an instance of a ns3::PacketSocketFactory onto the provided |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
44 |
* node. |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
45 |
* |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
46 |
* \param nodeName The name of the node on which to aggregate the ns3::PacketSocketFactory. |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
47 |
*/ |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
48 |
void Install (std::string nodeName) const; |
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
49 |
|
6bbf05bf4826
Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents:
3848
diff
changeset
|
50 |
/** |
3848
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
51 |
* For each node in the provided container, aggregate an instance of a |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
52 |
* ns3::PacketSocketFactory. |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
53 |
* |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
54 |
* \param c NodeContainer of the set of nodes to aggregate the |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
55 |
* ns3::PacketSocketFactory on. |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
56 |
*/ |
affd0834debc
address bug 393 (need to overload Install methods for python)
Craig Dowell <craigdo@ee.washington.edu>
parents:
2887
diff
changeset
|
57 |
void Install (NodeContainer c) const; |
2736
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
58 |
}; |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
59 |
|
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
60 |
} // namespace ns3 |
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
61 |
|
22ab60565251
aggregate PacketSocketFactory when requested to.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
62 |
#endif /* PACKET_SOCKET_HELPER_H */ |