DefaultInetAddressValidator

class DefaultInetAddressValidator(val limit: Int = MAX_CONNECTIONS) : InetAddressValidator

The default validation for a max number of concurrent active connections from a specific INet address, limited to 10 by default.

Constructors

Link copied to clipboard
constructor(limit: Int = MAX_CONNECTIONS)

Properties

Link copied to clipboard
val limit: Int

Functions

Link copied to clipboard
open override 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
open override 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

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