R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::NetworkSummary Struct Reference

What the client received from the server over the last NetworkStats::window. More...

#include </__w/project-rtype/project-rtype/client/network/include/rtype/network_stats.hpp>

Public Attributes

std::uint32_t received = 0
 Datagrams received, each sequence counted once.
 
std::uint32_t lost = 0
 Sequences missing between the oldest and the newest received.
 
double loss = 0.0
 Share of the datagrams lost, from 0 to 1: lost / (received + lost).
 
std::uint32_t snapshots = 0
 Snapshot datagrams received.
 
std::chrono::steady_clock::duration snapshot_interval {}
 Mean time between two snapshots, 0 with fewer than two.
 
std::chrono::steady_clock::duration snapshot_jitter {}
 Mean distance of each interval between two snapshots from their mean: how irregularly the snapshots arrive. 0 with fewer than three snapshots.
 

Detailed Description

What the client received from the server over the last NetworkStats::window.

Member Data Documentation

◆ loss

double rtype::NetworkSummary::loss = 0.0

Share of the datagrams lost, from 0 to 1: lost / (received + lost).

◆ lost

std::uint32_t rtype::NetworkSummary::lost = 0

Sequences missing between the oldest and the newest received.

◆ received

std::uint32_t rtype::NetworkSummary::received = 0

Datagrams received, each sequence counted once.

◆ snapshot_interval

std::chrono::steady_clock::duration rtype::NetworkSummary::snapshot_interval {}

Mean time between two snapshots, 0 with fewer than two.

◆ snapshot_jitter

std::chrono::steady_clock::duration rtype::NetworkSummary::snapshot_jitter {}

Mean distance of each interval between two snapshots from their mean: how irregularly the snapshots arrive. 0 with fewer than three snapshots.

◆ snapshots

std::uint32_t rtype::NetworkSummary::snapshots = 0

Snapshot datagrams received.


The documentation for this struct was generated from the following file: