Public Member Functions | |
MyApp () | |
MyApp () | |
MyApp () | |
virtual | ~MyApp () |
virtual | ~MyApp () |
virtual | ~MyApp () |
void | Setup (Ptr< Socket > socket, Address address, uint32_t packetSize, uint32_t nPackets, DataRate dataRate) |
void | Setup (Ptr< Socket > socket, Address address, uint32_t packetSize, uint32_t nPackets, DataRate dataRate) |
void | Setup (Ptr< Socket > socket, Address address, uint32_t packetSize, uint32_t nPackets, DataRate dataRate) |
![]() | |
Application () | |
virtual | ~Application () |
Ptr< Node > | GetNode () const |
void | SetNode (Ptr< Node > node) |
void | SetStartTime (Time start) |
Specify application start time. More... | |
void | SetStopTime (Time stop) |
Specify application stop time. More... | |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
Run the DoDispose methods of this object and all the objects aggregated to it. More... | |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Initialize (void) |
This method calls the virtual DoInitialize method on all the objects aggregated to this object. More... | |
![]() | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Private Member Functions | |
void | ScheduleTx (void) |
void | ScheduleTx (void) |
void | ScheduleTx (void) |
void | SendPacket (void) |
void | SendPacket (void) |
void | SendPacket (void) |
virtual void | StartApplication (void) |
Application specific startup code. More... | |
virtual void | StartApplication (void) |
Application specific startup code. More... | |
virtual void | StartApplication (void) |
Application specific startup code. More... | |
virtual void | StopApplication (void) |
Application specific shutdown code. More... | |
virtual void | StopApplication (void) |
Application specific shutdown code. More... | |
virtual void | StopApplication (void) |
Application specific shutdown code. More... | |
Private Attributes | |
DataRate | m_dataRate |
uint32_t | m_nPackets |
uint32_t | m_packetSize |
uint32_t | m_packetsSent |
Address | m_peer |
bool | m_running |
EventId | m_sendEvent |
Ptr< Socket > | m_socket |
Additional Inherited Members | |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
![]() | |
static void | Cleanup (void) |
Noop. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
virtual void | DoDispose (void) |
This method is called by Object::Dispose or by the object's destructor, whichever comes first. More... | |
virtual void | DoInitialize (void) |
This method is called only once by Object::Initialize. More... | |
![]() | |
Object (const Object &o) | |
virtual void | NotifyNewAggregate (void) |
This method is invoked whenever two sets of objects are aggregated together. More... | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
![]() | |
Ptr< Node > | m_node |
EventId | m_startEvent |
The simulation time that the appliacation will end. More... | |
Time | m_startTime |
The node that this application is installed on. More... | |
EventId | m_stopEvent |
The event that will fire at m_startTime to start the application. More... | |
Time | m_stopTime |
The simulation time that the appliacation will start. More... | |
MyApp::MyApp | ( | ) |
|
virtual |
MyApp::MyApp | ( | ) |
|
virtual |
|
private |
|
private |
|
private |
Definition at line 154 of file fifth.cc.
References ns3::DataRate::GetBitRate(), m_dataRate, m_packetSize, m_running, m_sendEvent, and SendPacket().
Referenced by SendPacket().
|
private |
|
private |
Definition at line 142 of file fifth.cc.
References m_nPackets, m_packetSize, m_packetsSent, m_socket, ScheduleTx(), and ns3::Socket::Send().
Referenced by ScheduleTx(), and StartApplication().
|
private |
void MyApp::Setup | ( | Ptr< Socket > | socket, |
Address | address, | ||
uint32_t | packetSize, | ||
uint32_t | nPackets, | ||
DataRate | dataRate | ||
) |
void MyApp::Setup | ( | Ptr< Socket > | socket, |
Address | address, | ||
uint32_t | packetSize, | ||
uint32_t | nPackets, | ||
DataRate | dataRate | ||
) |
void MyApp::Setup | ( | Ptr< Socket > | socket, |
Address | address, | ||
uint32_t | packetSize, | ||
uint32_t | nPackets, | ||
DataRate | dataRate | ||
) |
Definition at line 106 of file fifth.cc.
References first::address, m_dataRate, m_nPackets, m_packetSize, m_peer, and m_socket.
Referenced by main().
|
privatevirtual |
Application specific startup code.
The StartApplication method is called at the start time specified by Start This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
|
privatevirtual |
Application specific startup code.
The StartApplication method is called at the start time specified by Start This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
Definition at line 116 of file fifth.cc.
References ns3::Socket::Bind(), ns3::Socket::Connect(), m_packetsSent, m_peer, m_running, m_socket, and SendPacket().
|
privatevirtual |
Application specific startup code.
The StartApplication method is called at the start time specified by Start This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
|
privatevirtual |
Application specific shutdown code.
The StopApplication method is called at the stop time specified by Stop This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
|
privatevirtual |
Application specific shutdown code.
The StopApplication method is called at the stop time specified by Stop This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
Definition at line 126 of file fifth.cc.
References ns3::Socket::Close(), ns3::EventId::IsRunning(), m_running, m_sendEvent, and m_socket.
|
privatevirtual |
Application specific shutdown code.
The StopApplication method is called at the stop time specified by Stop This method should be overridden by all or most application subclasses.
Reimplemented from ns3::Application.
|
private |
Definition at line 82 of file fifth.cc.
Referenced by ScheduleTx(), and Setup().
|
private |
Definition at line 81 of file fifth.cc.
Referenced by SendPacket(), and Setup().
|
private |
Definition at line 80 of file fifth.cc.
Referenced by ScheduleTx(), SendPacket(), and Setup().
|
private |
Definition at line 85 of file fifth.cc.
Referenced by SendPacket(), and StartApplication().
|
private |
Definition at line 79 of file fifth.cc.
Referenced by Setup(), and StartApplication().
|
private |
Definition at line 84 of file fifth.cc.
Referenced by ScheduleTx(), StartApplication(), and StopApplication().
|
private |
Definition at line 83 of file fifth.cc.
Referenced by ScheduleTx(), and StopApplication().
Definition at line 78 of file fifth.cc.
Referenced by SendPacket(), Setup(), StartApplication(), StopApplication(), and ~MyApp().