Table of Contents

Class ServerSelectSystemRuntimeData

Namespace
FishMMO.Server.Implementation.LoginServer
Assembly
FishMMO.Server.dll

Runtime data container for ServerSelectSystem mutable state.

public class ServerSelectSystemRuntimeData : RuntimeDataContainer, IRuntimeDataContainer<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, IRuntimeDataContainer, IServerComponent<INetworkManagerWrapper, ServerManager, NetworkConnection, IRuntimeDataContainer>, IServerComponent
Inheritance
ServerSelectSystemRuntimeData
Implements
Inherited Members

Properties

InFlightRequests

Per-connection in-flight gate for server-list requests.

public ConcurrentDictionary<int, byte> InFlightRequests { get; }

Property Value

ConcurrentDictionary<int, byte>

NextAllowedRequestSecondsByClientId

Per-connection time-based cooldown to prevent sequential server-list spam after in-flight release, as MonotonicClock seconds: a local duration, which a wall-clock step back would have stretched to the length of the step.

public ConcurrentDictionary<int, double> NextAllowedRequestSecondsByClientId { get; }

Property Value

ConcurrentDictionary<int, double>

ServerList

The active world-server list, shared by every request inside its short lifetime and by every request that arrives while it is being read. Keyed by a single constant: the list is the same for every client.

public SingleFlightCache<byte, WorldServerDetails[]> ServerList { get; }

Property Value

SingleFlightCache<byte, WorldServerDetails[]>

Remarks

Timed on the monotonic clock, handed to the cache through its clock seam as a DateTime it only ever subtracts from itself. On the default wall clock a step back would have served one read of the list for the length of the step.

Methods

Clear()

Clears all runtime data in this container, resetting it to initial state. Must be implemented by derived classes.

public override void Clear()

InitializeOnce()

Called once to initialize the data container. Must be implemented by derived classes.

public override ServerComponentInitializationStatus InitializeOnce()

Returns

ServerComponentInitializationStatus

OnDeinitialize()

Called when the data container is being deinitialized. Must be implemented by derived classes.

protected override void OnDeinitialize()