NetSim Source Code Help
Loading...
Searching...
No Matches
Application.h File Reference
#include "main.h"
#include "Stack.h"
#include "NetSim_Plot.h"
Include dependency graph for Application.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_SocketInfo
 Structure to store socket information. More...
 
struct  stru_Application_Info
 Structure to store application information. More...
 
struct  stru_Application_DataInfo
 Structure for Data information such as packet size and inter arrival time,this is applicable for custom,FTP,Database Traffic. More...
 
struct  stru_Application_BSMInfo
 Structure for Data information such as packet size and inter arrival time,this is applicable for Vanet application. More...
 
struct  stru_Application_VoiceInfo
 Structure for voice information such as packet size, inter arrival time and service type,this is applicable for voice traffic. More...
 
struct  stru_Application_VideoInfo
 structure to store the video application information More...
 
struct  stru_Application_EmulationInfo
 Structure to store the emulation application information. More...
 
struct  stru_Application_HTTPInfo
 Structure to store the HTTP application information. More...
 
struct  stru_Application_COAPInfo
 Structure to store the COAP application information. More...
 
struct  stru_Application_EMAILInfo
 Structure to store email application information. More...
 
struct  stru_Application_EMAILInfo::stru_emailinfo
 
struct  stru_Application_P2P_SeederList
 Structure for Seeder list of peer_to_peer traffic. More...
 
struct  stru_Application_p2P_PeerList
 Structure for peer list of peer_to_peer traffic. More...
 
struct  stru_Application_P2PInfo
 Structure fot peer_to_peer application. More...
 
struct  stru_Application_CallInfo
 Structure for Erlang_call application. More...
 
struct  stru_email_detail
 

Macros

#define roundoff(d)   ((long)(d+0.5))
 
#define MAX_TTL   255
 
#define MAX_PORT   65535
 
#define VANET_APP_RANDOM_WAIT_TIME_DEFAULT   5*MILLISECOND
 
#define RANDOM_STARTUP_DELAY   0.1*SECOND
 
#define SOCKETINFO_ALLOC()   (struct stru_SocketInfo*)list_alloc(sizeof(struct stru_SocketInfo),offsetof(struct stru_SocketInfo,ele))
 

Typedefs

typedef struct stru_Application_DataInfo APP_DATA_INFO
 
typedef struct stru_Application_VoiceInfo APP_VOICE_INFO
 
typedef struct stru_Application_VideoInfo APP_VIDEO_INFO
 
typedef struct stru_Application_HTTPInfo APP_HTTP_INFO
 
typedef struct stru_Application_EMAILInfo APP_EMAIL_INFO
 
typedef struct stru_Application_P2PInfo APP_P2P_INFO
 
typedef struct stru_Application_CallInfo APP_CALL_INFO
 
typedef struct stru_Application_EmulationInfo APP_EMULATION_INFO
 
typedef struct stru_Application_COAPInfo APP_COAP_INFO
 
typedef struct stru_Application_Info APPLICATION_INFO
 Structure to store application information. More...
 
typedef struct stru_Application_InfoptrAPPLICATION_INFO
 
typedef struct stru_Application_BSMInfo APP_BSM_INFO
 Structure for Data information such as packet size and inter arrival time,this is applicable for Vanet application. More...
 
typedef struct stru_Application_BSMInfoPAPP_BSM_INFO
 
typedef struct stru_Application_P2P_SeederList SEEDER_LIST
 Structure for Seeder list of peer_to_peer traffic. More...
 
typedef struct stru_Application_p2P_PeerList PEER_LIST
 Structure for peer list of peer_to_peer traffic. More...
 
typedef struct stru_email_detail DETAIL
 

Enumerations

enum  APP_EVENT { event_APP_START = PROTOCOL_APPLICATION * 100 + 1 , event_APP_END , event_APP_RESTART }
 Enumeration for application events. More...
 
enum  ENCRYPTION {
  Encryption_None , Encryption_XOR , Encryption_TEA , Encryption_AES ,
  Encryption_DES
}
 
enum  APP_CONTROL_PACKET { packet_HTTP_REQUEST = PROTOCOL_APPLICATION * 100 + 1 , packet_COAP_REQUEST = PROTOCOL_APPLICATION * 100 + 2 }
 Enumeration for application control packets. More...
 
enum  APP_STATE { appState_Started , appState_Paused , appState_Terminated }
 Enumeration for application state. More...
 
enum  VIDEOMODEL {
  VidModel_NULL = 0 , VidModel_INDEPENDENT_GAUSSIAN = 1 , VidModel_FIRST_ORDER_DEPENDENT_GAUSSIAN , VidModel_H_261 ,
  VidModel_H_263 , VidModel_MPEG1_Low_Res , VidModel_MPEG1_High_Res , VidModel_MPEG2_Low_Res ,
  VidModel_MPEG2_High_Res , VidModel_BUFFERED_VIDEO_STREAMING_1 , VidModel_BUFFERED_VIDEO_STREAMING_2 , VidModel_BUFFERED_VIDEO_STREAMING_3 ,
  VidModel_BUFFERED_VIDEO_STREAMING_4 , VidModel_BUFFERED_VIDEO_STREAMING_5 , VidModel_BUFFERED_VIDEO_STREAMING_6 , VidModel_LAST
}
 

Functions

NetSim_PACKETfn_NetSim_Application_GeneratePacket (ptrAPPLICATION_INFO info, double ldArrivalTime, NETSIM_ID nSourceId, UINT destCount, NETSIM_ID *nDestination, unsigned long long int nPacketId, APPLICATION_TYPE nAppType, QUALITY_OF_SERVICE nQOS, unsigned int sourcePort, unsigned int destPort)
 
int fn_NetSim_Application_GenerateNextPacket (ptrAPPLICATION_INFO appInfo, NETSIM_ID nSource, UINT destCount, NETSIM_ID *nDestination, double time)
 
int fnDistribution (DISTRIBUTION nDistributionType, double *fDistOut, unsigned long *uSeed, unsigned long *uSeed1, double *args)
 
int fnRandomNo (long lm, double *fRandNo, unsigned long *uSeed, unsigned long *uSeed1)
 
int fn_NetSim_Application_StartHTTPAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureHTTPTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_HTTP_ProcessRequest (ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET *pstruPacket)
 
int fn_NetSim_Application_StartCOAPAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureCOAPTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_COAP_ProcessRequest (ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET *pstruPacket)
 
int fn_NetSim_Application_StartVideoAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureVideoTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_TrafficGenerator_Video (APP_VIDEO_INFO *info, double *fPacketSize, double *ldArrival, unsigned long *uSeed, unsigned long *uSeed1)
 
int fn_NetSim_TrafficGenerator_MPEGVideo (APP_VIDEO_INFO *info, double *fPacketSize, double *ldArrival, unsigned long *uSeed, unsigned long *uSeed1)
 
int fn_NetSim_Application_ConfigureMPEGVideo (APP_VIDEO_INFO *info, void *xmlNetSimNode)
 
int fn_NetSim_Application_StartVoiceAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureVoiceTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_TrafficGenerator_Voice (APP_VOICE_INFO *info, double *fSize, double *ldArrival, unsigned long *uSeed, unsigned long *uSeed1)
 
int fn_NetSim_Application_P2P_GenerateFile (ptrAPPLICATION_INFO appInfo)
 
int fn_NetSim_Application_P2P_InitSeederList (ptrAPPLICATION_INFO appInfo)
 
int fn_NetSim_Application_P2P_InitPeers (ptrAPPLICATION_INFO appInfo)
 
int fn_NetSim_Application_P2P_SendNextPiece (ptrAPPLICATION_INFO appInfo, NETSIM_ID destination, double time)
 
int fn_NetSim_Application_StartP2PAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureP2PTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_P2P_MarkReceivedPacket (ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET *pstruPacket)
 
int fn_NetSim_Application_StartEmailAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureEmailTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
ptrAPPLICATION_INFO fn_NetSim_Application_Email_GenerateNextPacket (DETAIL *detail, NETSIM_ID nSourceId, NETSIM_ID nDestinationId, double time)
 
ptrAPPLICATION_INFO get_email_app_info (void *detail)
 
int fn_NetSim_Application_StartDataAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureDataTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_ConfigureDatabaseTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_ConfigureFTPTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_TrafficGenerator_Custom (APP_DATA_INFO *info, double *fSize, double *ldArrival, unsigned long *uSeed, unsigned long *uSeed1, unsigned long *uSeed2, unsigned long *uSeed3)
 
int fn_NetSim_Application_ErlangCall_StartCall (NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_Application_ErlangCall_EndCall (NetSim_EVENTDETAILS *pstruEventDetails)
 
int fn_NetSim_Application_StartErlangCallAPP (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_ConfigureErlangCallTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
int fn_NetSim_Application_ConfigureEmulationTraffic (ptrAPPLICATION_INFO appInfo, void *xmlNetSimNode)
 
void fn_NetSim_Emulation_StartApplication (ptrAPPLICATION_INFO appInfo)
 
int fn_NetSim_Application_StartBSM (ptrAPPLICATION_INFO appInfo, double time)
 
int fn_NetSim_Application_BSM (PAPP_BSM_INFO info, double *fSize, double *ldArrival, unsigned long *uSeed, unsigned long *uSeed1, unsigned long *uSeed2, unsigned long *uSeed3)
 
bool add_sae_j2735_payload (NetSim_PACKET *packet, ptrAPPLICATION_INFO info)
 
void process_saej2735_packet (NetSim_PACKET *packet)
 
void add_multicast_route (ptrAPPLICATION_INFO info)
 
void join_multicast_group (ptrAPPLICATION_INFO info, double time)
 
int fn_NetSim_Application_Init_F ()
 
int fn_NetSim_Application_Configure_F (void **var)
 
int fn_NetSim_Application_Metrics_F (PMETRICSWRITER metricsWriter)
 
int fn_NetSim_App_RestartApplication ()
 
int fn_NetSim_Application_Plot (NetSim_PACKET *pstruPacket)
 
PACKET_TYPE fn_NetSim_Application_GetPacketTypeBasedOnApplicationType (APPLICATION_TYPE nAppType)
 
ptrSOCKETINTERFACE fnGetSocket (NETSIM_ID nAppId, NETSIM_ID nSourceId, NETSIM_ID nSourcePort, NETSIM_ID nDestPort)
 
void free_app_metrics (ptrAPPLICATION_INFO appInfo)
 
void appmetrics_src_add (ptrAPPLICATION_INFO appInfo, _In_ NetSim_PACKET *packet)
 
void appmetrics_dest_add (ptrAPPLICATION_INFO appInfo, NetSim_PACKET *packet, NETSIM_ID dest)
 
void fnCreatePort (ptrAPPLICATION_INFO info)
 
int fnCreateSocketBuffer (ptrAPPLICATION_INFO appInfo)
 
void P2P_create_socket (ptrAPPLICATION_INFO appInfo, NETSIM_ID src, NETSIM_ID dest)
 
int fn_NetSim_Add_DummyPayload (NetSim_PACKET *packet, ptrAPPLICATION_INFO)
 
char xor_encrypt (char ch, long key)
 
int aes256 (char *str, int *len)
 
int des (char *buf, int *len)
 
void handle_app_out ()
 

Variables

unsigned int nApplicationCount
 
ptrAPPLICATION_INFOapplicationInfo
 
static const char * strVIDEOMODEL []
 
bool nApplicationThroughputPlotFlag
 
char * szApplicationThroughputPlotVal
 
bool nApplicationThroughputPlotRealTime
 
PNETSIMPLOTapplicationThroughputPlots
 
bool * nAppPlotFlag
 

Macro Definition Documentation

◆ MAX_PORT

#define MAX_PORT   65535

Definition at line 35 of file Application.h.

◆ MAX_TTL

#define MAX_TTL   255

Definition at line 34 of file Application.h.

◆ RANDOM_STARTUP_DELAY

#define RANDOM_STARTUP_DELAY   0.1*SECOND

Definition at line 38 of file Application.h.

◆ roundoff

#define roundoff (   d)    ((long)(d+0.5))

Definition at line 33 of file Application.h.

◆ SOCKETINFO_ALLOC

#define SOCKETINFO_ALLOC ( )    (struct stru_SocketInfo*)list_alloc(sizeof(struct stru_SocketInfo),offsetof(struct stru_SocketInfo,ele))

Definition at line 94 of file Application.h.

◆ VANET_APP_RANDOM_WAIT_TIME_DEFAULT

#define VANET_APP_RANDOM_WAIT_TIME_DEFAULT   5*MILLISECOND

Definition at line 37 of file Application.h.

Typedef Documentation

◆ APP_BSM_INFO

Structure for Data information such as packet size and inter arrival time,this is applicable for Vanet application.

◆ APP_CALL_INFO

Definition at line 48 of file Application.h.

◆ APP_COAP_INFO

Definition at line 50 of file Application.h.

◆ APP_DATA_INFO

Definition at line 42 of file Application.h.

◆ APP_EMAIL_INFO

Definition at line 46 of file Application.h.

◆ APP_EMULATION_INFO

Definition at line 49 of file Application.h.

◆ APP_HTTP_INFO

Definition at line 45 of file Application.h.

◆ APP_P2P_INFO

Definition at line 47 of file Application.h.

◆ APP_VIDEO_INFO

Definition at line 44 of file Application.h.

◆ APP_VOICE_INFO

Definition at line 43 of file Application.h.

◆ APPLICATION_INFO

Structure to store application information.

◆ DETAIL

typedef struct stru_email_detail DETAIL

◆ PAPP_BSM_INFO

◆ PEER_LIST

Structure for peer list of peer_to_peer traffic.

◆ ptrAPPLICATION_INFO

◆ SEEDER_LIST

Structure for Seeder list of peer_to_peer traffic.

Enumeration Type Documentation

◆ APP_CONTROL_PACKET

Enumeration for application control packets.

Enumerator
packet_HTTP_REQUEST 
packet_COAP_REQUEST 

Definition at line 69 of file Application.h.

◆ APP_EVENT

enum APP_EVENT

Enumeration for application events.

Enumerator
event_APP_START 
event_APP_END 
event_APP_RESTART 

Definition at line 52 of file Application.h.

◆ APP_STATE

enum APP_STATE

Enumeration for application state.

Enumerator
appState_Started 
appState_Paused 
appState_Terminated 

Definition at line 76 of file Application.h.

◆ ENCRYPTION

enum ENCRYPTION
Enumerator
Encryption_None 
Encryption_XOR 
Encryption_TEA 
Encryption_AES 
Encryption_DES 

Definition at line 59 of file Application.h.

◆ VIDEOMODEL

enum VIDEOMODEL
Enumerator
VidModel_NULL 
VidModel_INDEPENDENT_GAUSSIAN 
VidModel_FIRST_ORDER_DEPENDENT_GAUSSIAN 
VidModel_H_261 
VidModel_H_263 
VidModel_MPEG1_Low_Res 
VidModel_MPEG1_High_Res 
VidModel_MPEG2_Low_Res 
VidModel_MPEG2_High_Res 
VidModel_BUFFERED_VIDEO_STREAMING_1 
VidModel_BUFFERED_VIDEO_STREAMING_2 
VidModel_BUFFERED_VIDEO_STREAMING_3 
VidModel_BUFFERED_VIDEO_STREAMING_4 
VidModel_BUFFERED_VIDEO_STREAMING_5 
VidModel_BUFFERED_VIDEO_STREAMING_6 
VidModel_LAST 

Definition at line 174 of file Application.h.

Function Documentation

◆ add_multicast_route()

void add_multicast_route ( ptrAPPLICATION_INFO  info)

Definition at line 17 of file Component 1/Part 4/Application/Multicast.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_sae_j2735_payload()

bool add_sae_j2735_payload ( NetSim_PACKET packet,
ptrAPPLICATION_INFO  info 
)

Definition at line 104 of file BSM.c.

Here is the caller graph for this function:

◆ aes256()

int aes256 ( char *  str,
int *  len 
)

Definition at line 28 of file aes_run.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ appmetrics_dest_add()

void appmetrics_dest_add ( ptrAPPLICATION_INFO  appInfo,
NetSim_PACKET packet,
NETSIM_ID  dest 
)
Here is the caller graph for this function:

◆ appmetrics_src_add()

void appmetrics_src_add ( ptrAPPLICATION_INFO  appInfo,
_In_ NetSim_PACKET packet 
)
Here is the caller graph for this function:

◆ des()

int des ( char *  buf,
int *  len 
)

Definition at line 21 of file des_run.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Add_DummyPayload()

int fn_NetSim_Add_DummyPayload ( NetSim_PACKET packet,
ptrAPPLICATION_INFO  info 
)

Definition at line 641 of file Application.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_App_RestartApplication()

int fn_NetSim_App_RestartApplication ( )
Here is the caller graph for this function:

◆ fn_NetSim_Application_BSM()

int fn_NetSim_Application_BSM ( PAPP_BSM_INFO  info,
double *  fSize,
double *  ldArrival,
unsigned long *  uSeed,
unsigned long *  uSeed1,
unsigned long *  uSeed2,
unsigned long *  uSeed3 
)

Definition at line 16 of file BSM.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Application_COAP_ProcessRequest()

int fn_NetSim_Application_COAP_ProcessRequest ( ptrAPPLICATION_INFO  pstruappinfo,
NetSim_PACKET pstruPacket 
)

Definition at line 210 of file CoAP.c.

Here is the call graph for this function:

◆ fn_NetSim_Application_Configure_F()

int fn_NetSim_Application_Configure_F ( void **  var)
Here is the caller graph for this function:

◆ fn_NetSim_Application_ConfigureCOAPTraffic()

int fn_NetSim_Application_ConfigureCOAPTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

Definition at line 37 of file CoAP.c.

Here is the call graph for this function:

◆ fn_NetSim_Application_ConfigureDatabaseTraffic()

int fn_NetSim_Application_ConfigureDatabaseTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureDataTraffic()

int fn_NetSim_Application_ConfigureDataTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureEmailTraffic()

int fn_NetSim_Application_ConfigureEmailTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureEmulationTraffic()

int fn_NetSim_Application_ConfigureEmulationTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

Definition at line 53 of file Emulation_application.c.

Here is the call graph for this function:

◆ fn_NetSim_Application_ConfigureErlangCallTraffic()

int fn_NetSim_Application_ConfigureErlangCallTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureFTPTraffic()

int fn_NetSim_Application_ConfigureFTPTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureHTTPTraffic()

int fn_NetSim_Application_ConfigureHTTPTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureMPEGVideo()

int fn_NetSim_Application_ConfigureMPEGVideo ( APP_VIDEO_INFO info,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureP2PTraffic()

int fn_NetSim_Application_ConfigureP2PTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureVideoTraffic()

int fn_NetSim_Application_ConfigureVideoTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_ConfigureVoiceTraffic()

int fn_NetSim_Application_ConfigureVoiceTraffic ( ptrAPPLICATION_INFO  appInfo,
void *  xmlNetSimNode 
)

◆ fn_NetSim_Application_Email_GenerateNextPacket()

ptrAPPLICATION_INFO fn_NetSim_Application_Email_GenerateNextPacket ( DETAIL detail,
NETSIM_ID  nSourceId,
NETSIM_ID  nDestinationId,
double  time 
)
Here is the caller graph for this function:

◆ fn_NetSim_Application_ErlangCall_EndCall()

int fn_NetSim_Application_ErlangCall_EndCall ( NetSim_EVENTDETAILS pstruEventDetails)
Here is the caller graph for this function:

◆ fn_NetSim_Application_ErlangCall_StartCall()

int fn_NetSim_Application_ErlangCall_StartCall ( NetSim_EVENTDETAILS pstruEventDetails)
Here is the caller graph for this function:

◆ fn_NetSim_Application_GenerateNextPacket()

int fn_NetSim_Application_GenerateNextPacket ( ptrAPPLICATION_INFO  appInfo,
NETSIM_ID  nSource,
UINT  destCount,
NETSIM_ID nDestination,
double  time 
)

This function is used to generate the next packet

Definition at line 377 of file Application.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Application_GeneratePacket()

NetSim_PACKET * fn_NetSim_Application_GeneratePacket ( ptrAPPLICATION_INFO  info,
double  ldArrivalTime,
NETSIM_ID  nSourceId,
UINT  destCount,
NETSIM_ID nDestination,
unsigned long long int  nPacketId,
APPLICATION_TYPE  nAppType,
QUALITY_OF_SERVICE  nQOS,
unsigned int  sourcePort,
unsigned int  destPort 
)

This function is used to generate the packets for application

Definition at line 311 of file Application.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Application_GetPacketTypeBasedOnApplicationType()

PACKET_TYPE fn_NetSim_Application_GetPacketTypeBasedOnApplicationType ( APPLICATION_TYPE  nAppType)
Here is the caller graph for this function:

◆ fn_NetSim_Application_HTTP_ProcessRequest()

int fn_NetSim_Application_HTTP_ProcessRequest ( ptrAPPLICATION_INFO  pstruappinfo,
NetSim_PACKET pstruPacket 
)
Here is the caller graph for this function:

◆ fn_NetSim_Application_Init_F()

int fn_NetSim_Application_Init_F ( )
Here is the caller graph for this function:

◆ fn_NetSim_Application_Metrics_F()

int fn_NetSim_Application_Metrics_F ( PMETRICSWRITER  metricsWriter)
Here is the caller graph for this function:

◆ fn_NetSim_Application_P2P_GenerateFile()

int fn_NetSim_Application_P2P_GenerateFile ( ptrAPPLICATION_INFO  appInfo)

◆ fn_NetSim_Application_P2P_InitPeers()

int fn_NetSim_Application_P2P_InitPeers ( ptrAPPLICATION_INFO  appInfo)

◆ fn_NetSim_Application_P2P_InitSeederList()

int fn_NetSim_Application_P2P_InitSeederList ( ptrAPPLICATION_INFO  appInfo)

◆ fn_NetSim_Application_P2P_MarkReceivedPacket()

int fn_NetSim_Application_P2P_MarkReceivedPacket ( ptrAPPLICATION_INFO  pstruappinfo,
NetSim_PACKET pstruPacket 
)
Here is the caller graph for this function:

◆ fn_NetSim_Application_P2P_SendNextPiece()

int fn_NetSim_Application_P2P_SendNextPiece ( ptrAPPLICATION_INFO  appInfo,
NETSIM_ID  destination,
double  time 
)
Here is the caller graph for this function:

◆ fn_NetSim_Application_Plot()

int fn_NetSim_Application_Plot ( NetSim_PACKET pstruPacket)
Here is the caller graph for this function:

◆ fn_NetSim_Application_StartBSM()

int fn_NetSim_Application_StartBSM ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

This function is used to start the Database, FTP and Custom applications

Definition at line 43 of file BSM.c.

Here is the call graph for this function:

◆ fn_NetSim_Application_StartCOAPAPP()

int fn_NetSim_Application_StartCOAPAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

Definition at line 170 of file CoAP.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Application_StartDataAPP()

int fn_NetSim_Application_StartDataAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

This function is used to start the Database, FTP and Custom applications

Definition at line 82 of file Database_FTP_Custom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fn_NetSim_Application_StartEmailAPP()

int fn_NetSim_Application_StartEmailAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Application_StartErlangCallAPP()

int fn_NetSim_Application_StartErlangCallAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Application_StartHTTPAPP()

int fn_NetSim_Application_StartHTTPAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Application_StartP2PAPP()

int fn_NetSim_Application_StartP2PAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Application_StartVideoAPP()

int fn_NetSim_Application_StartVideoAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Application_StartVoiceAPP()

int fn_NetSim_Application_StartVoiceAPP ( ptrAPPLICATION_INFO  appInfo,
double  time 
)

◆ fn_NetSim_Emulation_StartApplication()

void fn_NetSim_Emulation_StartApplication ( ptrAPPLICATION_INFO  appInfo)

Definition at line 134 of file Emulation_application.c.

Here is the call graph for this function:

◆ fn_NetSim_TrafficGenerator_Custom()

int fn_NetSim_TrafficGenerator_Custom ( APP_DATA_INFO info,
double *  fSize,
double *  ldArrival,
unsigned long *  uSeed,
unsigned long *  uSeed1,
unsigned long *  uSeed2,
unsigned long *  uSeed3 
)
Here is the caller graph for this function:

◆ fn_NetSim_TrafficGenerator_MPEGVideo()

int fn_NetSim_TrafficGenerator_MPEGVideo ( APP_VIDEO_INFO info,
double *  fPacketSize,
double *  ldArrival,
unsigned long *  uSeed,
unsigned long *  uSeed1 
)

◆ fn_NetSim_TrafficGenerator_Video()

int fn_NetSim_TrafficGenerator_Video ( APP_VIDEO_INFO info,
double *  fPacketSize,
double *  ldArrival,
unsigned long *  uSeed,
unsigned long *  uSeed1 
)
Here is the caller graph for this function:

◆ fn_NetSim_TrafficGenerator_Voice()

int fn_NetSim_TrafficGenerator_Voice ( APP_VOICE_INFO info,
double *  fSize,
double *  ldArrival,
unsigned long *  uSeed,
unsigned long *  uSeed1 
)
Here is the caller graph for this function:

◆ fnCreatePort()

void fnCreatePort ( ptrAPPLICATION_INFO  info)
Here is the caller graph for this function:

◆ fnCreateSocketBuffer()

int fnCreateSocketBuffer ( ptrAPPLICATION_INFO  appInfo)
Here is the caller graph for this function:

◆ fnDistribution()

int fnDistribution ( DISTRIBUTION  nDistributionType,
double *  fDistOut,
unsigned long *  uSeed,
unsigned long *  uSeed1,
double *  args 
)

This function is used to run the distributions

Definition at line 17 of file Distribution.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fnGetSocket()

ptrSOCKETINTERFACE fnGetSocket ( NETSIM_ID  nAppId,
NETSIM_ID  nSourceId,
NETSIM_ID  nSourcePort,
NETSIM_ID  nDestPort 
)
Here is the caller graph for this function:

◆ fnRandomNo()

int fnRandomNo ( long  lm,
double *  fRandNo,
unsigned long *  uSeed,
unsigned long *  uSeed1 
)

This function is used to generate the random number

Definition at line 19 of file RandomNumber.c.

Here is the caller graph for this function:

◆ free_app_metrics()

void free_app_metrics ( ptrAPPLICATION_INFO  appInfo)
Here is the caller graph for this function:

◆ get_email_app_info()

ptrAPPLICATION_INFO get_email_app_info ( void *  detail)
Here is the caller graph for this function:

◆ handle_app_out()

void handle_app_out ( )

Definition at line 170 of file APP_OUT.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ join_multicast_group()

void join_multicast_group ( ptrAPPLICATION_INFO  info,
double  time 
)

Definition at line 80 of file Component 1/Part 4/Application/Multicast.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ P2P_create_socket()

void P2P_create_socket ( ptrAPPLICATION_INFO  appInfo,
NETSIM_ID  src,
NETSIM_ID  dest 
)

◆ process_saej2735_packet()

void process_saej2735_packet ( NetSim_PACKET packet)

Definition at line 111 of file BSM.c.

Here is the caller graph for this function:

◆ xor_encrypt()

char xor_encrypt ( char  ch,
long  key 
)

Definition at line 19 of file Encryption.c.

Here is the caller graph for this function:

Variable Documentation

◆ applicationInfo

ptrAPPLICATION_INFO* applicationInfo

Definition at line 136 of file Application.h.

◆ applicationThroughputPlots

PNETSIMPLOT* applicationThroughputPlots

Definition at line 340 of file Application.h.

◆ nApplicationCount

unsigned int nApplicationCount

Definition at line 40 of file Application.h.

◆ nApplicationThroughputPlotFlag

bool nApplicationThroughputPlotFlag

Definition at line 337 of file Application.h.

◆ nApplicationThroughputPlotRealTime

bool nApplicationThroughputPlotRealTime

Definition at line 339 of file Application.h.

◆ nAppPlotFlag

bool* nAppPlotFlag

Definition at line 341 of file Application.h.

◆ strVIDEOMODEL

const char* strVIDEOMODEL[]
static
Initial value:
= {"","INDEPENDENT_GAUSSIAN",
"FIRST_ORDER_DEPENDENT_GAUSSIAN", "H_261", "H_263","MPEG1_Low_Res",
"MPEG1_High_Res","MPEG2_Low_Res","MPEG2_High_Res","BUFFERED_VIDEO_STREAMING_1",
"BUFFERED_VIDEO_STREAMING_2","BUFFERED_VIDEO_STREAMING_3",
"BUFFERED_VIDEO_STREAMING_4","BUFFERED_VIDEO_STREAMING_5",
"BUFFERED_VIDEO_STREAMING_6","Unknown"}

Definition at line 193 of file Application.h.

◆ szApplicationThroughputPlotVal

char* szApplicationThroughputPlotVal

Definition at line 338 of file Application.h.