ConcurrentNetworkTrafficSnapshot

class ConcurrentNetworkTrafficSnapshot<LoginBlock>(val startDateTime: LocalDateTime, val endDateTime: LocalDateTime, val connectionRequests: Int, val loginBlocks: Map<InetAddress, List<LoginBlock>>, val loginSnapshot: ChannelTrafficSnapshot, val js5Snapshot: ChannelTrafficSnapshot, val gameSnapshot: ChannelTrafficSnapshot) : NetworkTrafficSnapshot

The concurrent network traffic snapshot is a result of calling the net.rsprot.protocol.metrics.impl.ConcurrentNetworkTrafficMonitor.snapshot function. This data structure tracks any network traffic that occurred during a specific time period. Note that the net.rsprot.protocol.metrics.NetworkTrafficMonitor.freeze is ignored when it comes to the snapshots, no information is provided regarding the freeze periods.

Constructors

Link copied to clipboard
constructor(startDateTime: LocalDateTime, endDateTime: LocalDateTime, connectionRequests: Int, loginBlocks: Map<InetAddress, List<LoginBlock>>, loginSnapshot: ChannelTrafficSnapshot, js5Snapshot: ChannelTrafficSnapshot, gameSnapshot: ChannelTrafficSnapshot)

Properties

Link copied to clipboard

the number of connection requests that were received.

Link copied to clipboard

the duration that this snapshot covers.

Link copied to clipboard

the number of milliseconds that this snapshot covers.

Link copied to clipboard

the local datetime when the snapshot was captured.

Link copied to clipboard

a snapshot of the game channel's traffic.

Link copied to clipboard

a snapshot of the JS5 channel's traffic.

Link copied to clipboard

the complete login blocks that were received from each InetAddress, in the order that they were received.

Link copied to clipboard

a snapshot of the login channel's traffic.

Link copied to clipboard

the local datetime when the tracking began.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String