63 unsigned long* uSeed1,
64 unsigned long* uSeed2,
65 unsigned long* uSeed3)
71 }
while(*fSize <= 1.0);
77 *ldArrival = *ldArrival + time;
94 double arrivalTime = 0;
95 double packetSize = 0;
119 if (appInfo->
dEndTime <= time + arrivalTime)
return 0;
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)
void add_multicast_route(ptrAPPLICATION_INFO info)
int fnCreateSocketBuffer(ptrAPPLICATION_INFO appInfo)
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)
void join_multicast_group(ptrAPPLICATION_INFO info, double time)
int fnDistribution(DISTRIBUTION nDistributionType, double *fDistOut, unsigned long *uSeed, unsigned long *uSeed1, double *args)
void fnCreatePort(ptrAPPLICATION_INFO info)
int fn_NetSim_Application_StartDataAPP(ptrAPPLICATION_INFO appInfo, double time)
#define _declspec(dllexport)
This function is used to trigger the update.
#define PROTOCOL_APPLICATION
#define DEVICE_TYPE(DeviceId)
EXPORTED struct stru_NetSim_Network * NETWORK
EXPORTED struct stru_NetSim_EventDetails * pstruEventDetails
#define fnpAddEvent(pstruEvent)
Structure for Data information such as packet size and inter arrival time,this is applicable for cust...
DISTRIBUTION IATDistribution
DISTRIBUTION packetSizeDistribution
Structure to store application information.
APPLICATION_TYPE nAppType
TRANSMISSION_TYPE nTransmissionType
unsigned long long int nPacketId
unsigned long ulSeed[SEED_COUNT]
struct stru_NetSim_Packet * pPacket
netsimDEVICE_TYPE nDeviceType
struct stru_NetSim_Device ** ppstruDeviceList