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

Go to the source code of this file.

Functions

bool fn_NetSim_DSR_AddToSendBuffer (DSR_SEND_BUFFER **sendBuffer, NetSim_PACKET *packet, double dTime)
 
void fn_NetSim_DSR_EmptySendBuffer (NETSIM_IPAddress targetAddress, NETSIM_ID nDeviceId)
 
void fn_NetSim_DSR_CheckSendBuffer (NETSIM_ID nDeviceId, double dTime)
 
int fn_NetSim_DSR_TransmitPacketFromSendBuffer (DSR_SEND_BUFFER *sendBuffer, NETSIM_ID nDeviceId, double dTime)
 

Function Documentation

◆ fn_NetSim_DSR_AddToSendBuffer()

bool fn_NetSim_DSR_AddToSendBuffer ( DSR_SEND_BUFFER **  sendBuffer,
NetSim_PACKET packet,
double  dTime 
)

This function adds the packet to send buffer.

Definition at line 20 of file SendBuffer.c.

◆ fn_NetSim_DSR_CheckSendBuffer()

void fn_NetSim_DSR_CheckSendBuffer ( NETSIM_ID  nDeviceId,
double  dTime 
)

This function checks if the route cache has the route to the target and transmits the packet if it has.

Definition at line 83 of file SendBuffer.c.

◆ fn_NetSim_DSR_EmptySendBuffer()

void fn_NetSim_DSR_EmptySendBuffer ( NETSIM_IPAddress  targetAddress,
NETSIM_ID  nDeviceId 
)

This function Empties the send buffer.

Definition at line 56 of file SendBuffer.c.

Here is the call graph for this function:

◆ fn_NetSim_DSR_TransmitPacketFromSendBuffer()

int fn_NetSim_DSR_TransmitPacketFromSendBuffer ( DSR_SEND_BUFFER sendBuffer,
NETSIM_ID  nDeviceId,
double  dTime 
)

This function transmits the packets from sent buffer

Definition at line 120 of file SendBuffer.c.

Here is the call graph for this function: