NetSim Source Code Help
Loading...
Searching...
No Matches
Database_FTP_Custom.c File Reference
#include "Application.h"
Include dependency graph for Database_FTP_Custom.c:

Go to the source code of this file.

Functions

 _declspec (dllexport)
 
int fn_NetSim_Application_StartDataAPP (ptrAPPLICATION_INFO appInfo, double time)
 

Function Documentation

◆ _declspec()

_declspec ( dllexport  )
This function is used to create create applications
Users can model their own mathematical distributions for packet sizes and itnerarrival times
For Custom
2nd parameter: Distribution Type| Distribution input1|Distribution input2|>
Details
If user selects any of the distributions listed below, then pass the corresponding number for the distribution type
Exponential -1
Uniform -2
Triangular -3
Weibull -4
Constant -5
Distribution input1-Value of Mean if exponential distribution/Upper bound for others
Distribution input2-Value of lower bound
Dont pass any thing if any of the distribution has no distribution input 2.
3rd parameter: Distribution Type |Distribution input1|Distribution input2|>
Details
If user selects any of the distributions listed below, then pass the corresponding number for the distribution type: Refer field -19
Exponential -1
Uniform -2
Triangular-3
Weibull-4
Constant-5
Distribution input1-Value of Mean if exponential distribution/Upper bound for others
Distribution input2-Value of lower bound
Dont pass any thing if any of the distribution has no distribution input 2.
2)ldArrival-Arrival time of the last frame.
3)unsigned long uSeed,unsigned long uSeed1-Seed values for packet size
4)unsigned long uSeed2,unsigned long uSeed3-Seed values for inter arrival time
Return Value:pointer to an array of long double
1st element:packet size
2nd element:arrival time
3rd,4th element:seed values for packet size
5th,6th element:seed values for inter arrival time
Definition: List.h:43

Definition at line 59 of file Database_FTP_Custom.c.

Here is the call 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: