|
|
| 26 |
#include "ns3/object.h" |
26 |
#include "ns3/object.h" |
| 27 |
#include "ns3/ptr.h" |
27 |
#include "ns3/ptr.h" |
| 28 |
#include "ns3/node.h" |
28 |
#include "ns3/node.h" |
|
|
29 |
#include "ns3/traced-callback.h" |
| 30 |
#include "ns3/socket.h" |
| 29 |
|
31 |
|
| 30 |
namespace ns3 { |
32 |
namespace ns3 { |
| 31 |
|
33 |
|
|
|
| 104 |
*/ |
106 |
*/ |
| 105 |
void SetNode (Ptr<Node> node); |
107 |
void SetNode (Ptr<Node> node); |
| 106 |
|
108 |
|
|
|
109 |
/** |
| 110 |
* TracedCallback signature for socket creation |
| 111 |
* |
| 112 |
* \param [in] socket The socket created |
| 113 |
*/ |
| 114 |
typedef void (* ApplicationSocketCreated)(const Ptr<const Socket> socket); |
| 115 |
|
| 107 |
private: |
116 |
private: |
| 108 |
/** |
117 |
/** |
| 109 |
* \brief Application specific startup code |
118 |
* \brief Application specific startup code |
|
|
| 131 |
Time m_stopTime; //!< The simulation time that the application will end |
140 |
Time m_stopTime; //!< The simulation time that the application will end |
| 132 |
EventId m_startEvent; //!< The event that will fire at m_startTime to start the application |
141 |
EventId m_startEvent; //!< The event that will fire at m_startTime to start the application |
| 133 |
EventId m_stopEvent; //!< The event that will fire at m_stopTime to end the application |
142 |
EventId m_stopEvent; //!< The event that will fire at m_stopTime to end the application |
|
|
143 |
|
| 144 |
TracedCallback<Ptr<const Socket> > m_socketCreated; //!< TracedCallback for socket creation |
| 134 |
}; |
145 |
}; |
| 135 |
|
146 |
|
| 136 |
} // namespace ns3 |
147 |
} // namespace ns3 |