NetworkTrafficMonitor

A complete network traffic monitor that covers all channel types.

Inheritors

Properties

Link copied to clipboard

the game channel traffic monitor.

Link copied to clipboard

the JS5 channel traffic monitor.

Link copied to clipboard

the traffic monitor for the login channel, including the "handshake" phase as it is commonly referred to.

Functions

Link copied to clipboard
abstract fun addLoginBlock(inetAddress: InetAddress, block: LoginBlock)

Adds a new login block from the provided inetAddress.

Link copied to clipboard
abstract fun freeze()

Freezes any transient traffic monitoring for this monitor, across all three of the channel monitors. The freeze function does not stop active connection tracking, however, as that could cause bad data in the future (number of connections going negative). This will block majority of the monitoring that goes on, though. This function has no effect if the traffic was already frozen.

Link copied to clipboard
abstract fun incrementConnections()

Increments connections established in total.

Link copied to clipboard

Resets any transient metrics and captures a full traffic snapshot of everything that happened prior to the resetting. This snapshot function will use a short-lived synchronization block to ensure consistency in the data captured.

Link copied to clipboard

Creates a full network traffic snapshot covering all three of the channel traffic monitors. This snapshot function will not use synchronization during creation, so it is possible for slight inconsistencies to occur due to the data being cloned at slightly different moments.

Link copied to clipboard
abstract fun unfreeze()

Unfreezes any transient traffic monitoring that was frozen before. This function has no effect if the traffic was not frozen.