Skip to content

EntropyEngine::Networking::ConnectionStats

EntropyEngine::Networking::ConnectionStats

Section titled “EntropyEngine::Networking::ConnectionStats”

Connection statistics. More…

#include <ConnectionTypes.h>

Name
ConnectionStats &operator=(const ConnectionStats & other)
ConnectionStats(const ConnectionStats & other)
ConnectionStats() =default
Name
std::atomic< uint64_t >messagesSent
std::atomic< uint64_t >messagesReceived
std::atomic< uint64_t >lastActivityTime
Timestamp of last send/receive activity (ms since epoch).
std::atomic< uint64_t >connectTime
Timestamp of connection establishment (ms since epoch).
std::atomic< uint64_t >bytesSent
std::atomic< uint64_t >bytesReceived
struct EntropyEngine::Networking::ConnectionStats;

Connection statistics.

Uses atomic counters to allow lock-free updates in hot paths while still being copyable for snapshot reads via getStats().

inline ConnectionStats & operator=(
const ConnectionStats & other
)
inline ConnectionStats(
const ConnectionStats & other
)
ConnectionStats() =default
std::atomic< uint64_t > messagesSent {0};
std::atomic< uint64_t > messagesReceived {0};
std::atomic< uint64_t > lastActivityTime {0};

Timestamp of last send/receive activity (ms since epoch).

std::atomic< uint64_t > connectTime {0};

Timestamp of connection establishment (ms since epoch).

std::atomic< uint64_t > bytesSent {0};
std::atomic< uint64_t > bytesReceived {0};

Updated on 2026-01-26 at 17:14:35 -0500