NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::CallbackBasedApp Class Reference

A meta application that can be used to create custom apps within Python bindings. More...

#include <callback-based-app.h>

Inheritance diagram for ns3::CallbackBasedApp:
Collaboration diagram for ns3::CallbackBasedApp:

Public Member Functions

 CallbackBasedApp ()
 Default constructor.
 
virtual ~CallbackBasedApp ()
 Virtual destructor.
 
void SetOnStartCallback (Callback< void, Ptr< Application > > onStart)
 Define callback that will be fired when application need to start its work.
 
void SetOnStopCallback (Callback< void, Ptr< Application > > onStart)
 Define callback that will be fired when application need to stop its work.
 

Static Public Member Functions

static TypeId GetTypeId ()
 

Protected Member Functions

virtual void StartApplication ()
 Called at time specified by Start.
 
virtual void StopApplication ()
 Called at time specified by Stop.
 

Detailed Description

A meta application that can be used to create custom apps within Python bindings.

Config Paths

ns3::CallbackBasedApp is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/ApplicationList/[i]/$ns3::CallbackBasedApp

Attributes

  • OnStart: OnStart callback
    • Set with class: CallbackValue
    • Underlying type: Callback
    • Initial value: 0x0
    • Flags: construct write read
  • OnStop: OnStop callback
    • Set with class: CallbackValue
    • Underlying type: Callback
    • Initial value: 0x0
    • Flags: construct write read

Attributes defined in parent class ns3::Application

  • StartTime: Time at which the application will start
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +0.0ns
    • Flags: construct write read
  • StopTime: Time at which the application will stop
    • Set with class: ns3::TimeValue
    • Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +0.0ns
    • Flags: construct write read

No TraceSources are defined for this type.

Definition at line 25 of file callback-based-app.h.


The documentation for this class was generated from the following files: