mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-20 11:42:49 +00:00
feat(net): count every server's packets and send a traffic report every 5 seconds
TrafficStats keeps packets and bytes in and out per second and the busiest packet and game message types. dServer counts at its send and receive calls and adds RakNet's connection statistics (datagrams, resends, ping); the report goes to master as SERVER_TRAFFIC (appended), which passes it to the dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,5 +63,8 @@ namespace MessageType {
|
||||
MIGRATE_STATUS,
|
||||
// Source world -> master -> target world: what a moved player had that isn't in their saved character
|
||||
MIGRATE_PLAYER_STATE,
|
||||
|
||||
// Any server -> master -> dashboard: traffic counters of the last few seconds (see ServerTraffic.h)
|
||||
SERVER_TRAFFIC,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user