EntropyEngine::Networking::ConnectionStats
EntropyEngine::Networking::ConnectionStats
Section titled “EntropyEngine::Networking::ConnectionStats”Connection statistics. More…
#include <ConnectionTypes.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| ConnectionStats & | operator=(const ConnectionStats & other) |
| ConnectionStats(const ConnectionStats & other) | |
| ConnectionStats() =default |
Public Attributes
Section titled “Public Attributes”| 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 |
Detailed Description
Section titled “Detailed Description”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().
Public Functions Documentation
Section titled “Public Functions Documentation”function operator=
Section titled “function operator=”inline ConnectionStats & operator=( const ConnectionStats & other)function ConnectionStats
Section titled “function ConnectionStats”inline ConnectionStats( const ConnectionStats & other)function ConnectionStats
Section titled “function ConnectionStats”ConnectionStats() =defaultPublic Attributes Documentation
Section titled “Public Attributes Documentation”variable messagesSent
Section titled “variable messagesSent”std::atomic< uint64_t > messagesSent {0};variable messagesReceived
Section titled “variable messagesReceived”std::atomic< uint64_t > messagesReceived {0};variable lastActivityTime
Section titled “variable lastActivityTime”std::atomic< uint64_t > lastActivityTime {0};Timestamp of last send/receive activity (ms since epoch).
variable connectTime
Section titled “variable connectTime”std::atomic< uint64_t > connectTime {0};Timestamp of connection establishment (ms since epoch).
variable bytesSent
Section titled “variable bytesSent”std::atomic< uint64_t > bytesSent {0};variable bytesReceived
Section titled “variable bytesReceived”std::atomic< uint64_t > bytesReceived {0};Updated on 2026-01-26 at 17:14:35 -0500