Applicable Versions
NetSim Standard
NetSim Pro


Applicable Releases
v11
v12
v13



The structure stru_Application_Info defined in Application.h file contains the common parameters of all applications such as Application ID, Source ID, Destination ID etc.

Further the parameters unique to each application are also defined in the same file for various application types in NetSim.


APP_DATA_INFO -  structure for senor application parameters
APP_VOICE_INFO - structure for voice application parameters
APP_VIDEO_INFO - structure for video application parameters etc

To access the parameters specific to an application:
1. Create a variable of that applications appdata structure type.
2. Define the value for the variables by type converting the  appInfo->appData i.e existing variable of structure APP_INFO.

For Example:


// already defined in APPLICATION_OUT_EVENT
APP_INFO* appInfo=(APP_INFO*)pstruEventDetails->szOtherDetails; 

For IAT and packet size
          APP_DATA_INFO* datainfo = (APP_DATA_INFO*)appInfo->appData;
          datainfo->dIAT; // Inter arrival time
          datainfo->dPacketSize; 
//packet size

For Voice application parameters
          APP_VOICE_INFO* datainfo = (APP_VOICE_INFO*)appInfo->appData;
          datainfo->packetSizeDistribution;
 //packet distribution
          datainfo->dIAT; // Inter arrival time
          datainfo->nServiceType; 
// Service Type

For Video application parameters
          APP_VIDEO_INFO* datainfo = (APP_VIDEO_INFO*)appInfo->appData;
          datainfo->nVidModel; 
//Video Model
          datainfo->fps; 
//Frames Per second


Related Articles:

Briefly explain the code flow of NetSim's traffic generator / applications module

How do I change the payload of a packet in NetSim?