Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
stream::session::termination_stats_t Struct Reference

Aggregate reconnection/termination stats for diagnostics. More...

#include <src/stream.h>

Public Attributes

termination_reason_e last_reason {termination_reason_e::UNKNOWN}
uint64_t ms_since_last_end {0}
 Steady-clock ms since the last session ended; 0 if none has ended yet.
uint64_t total_ended {0}
 Sessions that have ended this run.
uint64_t client_lost_count {0}
 Of those, ended by client loss (drops).

Detailed Description

Aggregate reconnection/termination stats for diagnostics.

Lets the UI distinguish "a client just dropped" from "the last session ended cleanly a while ago", and surface how often clients are dropping (a network-quality signal) without scraping logs.

Definition at line 86 of file stream.h.

Member Data Documentation

◆ client_lost_count

uint64_t stream::session::termination_stats_t::client_lost_count {0}

Of those, ended by client loss (drops).

Definition at line 91 of file stream.h.

◆ last_reason

termination_reason_e stream::session::termination_stats_t::last_reason {termination_reason_e::UNKNOWN}

Definition at line 87 of file stream.h.

◆ ms_since_last_end

uint64_t stream::session::termination_stats_t::ms_since_last_end {0}

Steady-clock ms since the last session ended; 0 if none has ended yet.

Definition at line 89 of file stream.h.

◆ total_ended

uint64_t stream::session::termination_stats_t::total_ended {0}

Sessions that have ended this run.

Definition at line 90 of file stream.h.


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