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

Go to the source code of this file.

Functions

int fn_NetSim_UDP_Run ()
 
int fn_NetSim_UDP_Configure (void **var)
 
int fn_NetSim_UDP_Init ()
 
int fn_NetSim_UDP_Finish ()
 Function to free the UDP protocol variable and Unload the primitives. More...
 
char * fn_NetSim_UDP_ConfigPacketTrace ()
 
int fn_NetSim_UDP_WritePacketTrace (NetSim_PACKET *pstruPacket, char **ppszTrace)
 
char * fn_NetSim_UDP_Trace (int nSubEvent)
 Return the subevent name with respect to the subevent number for writting event trace. More...
 
int fn_NetSim_UDP_FreePacket (NetSim_PACKET *pstruPacket)
 Function to free the allocated memory for the UDP packet. More...
 
int fn_NetSim_UDP_CopyPacket (NetSim_PACKET *pstruDestPacket, NetSim_PACKET *pstruSrcPacket)
 Function to copy the UDP packet from source to destination. More...
 
int fn_NetSim_UDP_Metrics (PMETRICSWRITER metricsWriter)
 Function to write UDP Metrics into Metrics.txt. More...
 

Function Documentation

◆ fn_NetSim_UDP_ConfigPacketTrace()

char * fn_NetSim_UDP_ConfigPacketTrace ( )

This function will return the string to wrie packet trace heading

Definition at line 91 of file UDP.c.

◆ fn_NetSim_UDP_Configure()

int fn_NetSim_UDP_Configure ( void **  var)

This function is called by NetworkStack.dll, while configuring the device TRANSPORT layer for UDP protocol.

Definition at line 63 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_CopyPacket()

int fn_NetSim_UDP_CopyPacket ( NetSim_PACKET pstruDestPacket,
NetSim_PACKET pstruSrcPacket 
)

Function to copy the UDP packet from source to destination.

This function is called by NetworkStack.dll, to free the packet of UDP protocol

Definition at line 121 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_Finish()

int fn_NetSim_UDP_Finish ( )

Function to free the UDP protocol variable and Unload the primitives.

This function is called by NetworkStack.dll, once simulation end to free the allocated memory for the network.

Definition at line 79 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_FreePacket()

int fn_NetSim_UDP_FreePacket ( NetSim_PACKET pstruPacket)

Function to free the allocated memory for the UDP packet.

Definition at line 114 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_Init()

int fn_NetSim_UDP_Init ( )

This functon initializes the UDP parameters.

Definition at line 71 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_Metrics()

int fn_NetSim_UDP_Metrics ( PMETRICSWRITER  metricsWriter)

Function to write UDP Metrics into Metrics.txt.

This function write the Metrics in Metrics.txt

Definition at line 126 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_Run()

int fn_NetSim_UDP_Run ( )

This function is called by NetworkStack.dll, whenever the event gets triggered
inside the NetworkStack.dll for the Transport layer UDP protocol

Definition at line 32 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_Trace()

char * fn_NetSim_UDP_Trace ( int  nSubEvent)

Return the subevent name with respect to the subevent number for writting event trace.

This function is called by NetworkStack.dll, while writing the evnt trace to get the sub event as a string.

Definition at line 109 of file UDP.c.

Here is the call graph for this function:

◆ fn_NetSim_UDP_WritePacketTrace()

int fn_NetSim_UDP_WritePacketTrace ( NetSim_PACKET pstruPacket,
char **  ppszTrace 
)

Definition at line 99 of file UDP.c.