DDraceNetwork Docs
crapnet.cpp File Reference
#include <base/logger.h>
#include <base/system.h>
#include <cstdlib>
#include <iterator>
#include <thread>
Include dependency graph for crapnet.cpp:

Classes

struct  SPacket
 
struct  SPingConfig
 

Functions

void Run (unsigned short Port, NETADDR Dest)
 
int main (int argc, const char **argv)
 

Variables

static SPacketg_pFirst = (SPacket *)0
 
static SPacketg_pLast = (SPacket *)0
 
static int g_CurrentLatency = 0
 
static SPingConfig g_aConfigPings []
 
static int g_ConfigNumpingconfs = std::size(g_aConfigPings)
 
static int g_ConfigInterval = 10
 
static int g_ConfigLog = 0
 
static int g_ConfigReorder = 0
 

Function Documentation

◆ main()

int main ( int  argc,
const char **  argv 
)

◆ Run()

void Run ( unsigned short  Port,
NETADDR  Dest 
)

Variable Documentation

◆ g_aConfigPings

SPingConfig g_aConfigPings[]
static
Initial value:
= {
{0, 0, 0, 0, 0, 0},
{40, 20, 100, 0, 0, 0},
{140, 40, 200, 0, 0, 0},
}

◆ g_ConfigInterval

int g_ConfigInterval = 10
static

◆ g_ConfigLog

int g_ConfigLog = 0
static

◆ g_ConfigNumpingconfs

int g_ConfigNumpingconfs = std::size(g_aConfigPings)
static

◆ g_ConfigReorder

int g_ConfigReorder = 0
static

◆ g_CurrentLatency

int g_CurrentLatency = 0
static

◆ g_pFirst

SPacket* g_pFirst = (SPacket *)0
static

◆ g_pLast

SPacket* g_pLast = (SPacket *)0
static