InetAddressValidator

The validation service for InetAddress. This service is responsible for accepting of rejecting connections based on the number of active connections from said service. It is worth noting that game and JS5 are tracked separately, as each client opened will initiate a request to both. Any connections opened at the very start before either JS5 or game has been decided will not be validated, as it is unclear to which end point they wish to connect. Those sessions will time out after 30 seconds if no decision has been made.

Inheritors

Functions

Link copied to clipboard
abstract fun acceptGameConnection(address: InetAddress, activeGameConnections: Int): Boolean

Whether to accept a game connection from the provided address based on the current number of active game connections

Link copied to clipboard
abstract fun acceptJs5Connection(address: InetAddress, activeJs5Connections: Int, seed: IntArray): Boolean

Whether to accept a JS5 connection from the provided address based on the current number of active Js5 connections