Struct SceneServerData
Scene server registration data transfer object.
public struct SceneServerData
- Inherited Members
Constructors
SceneServerData(long, string, DateTime, string, int, int, bool, double)
public SceneServerData(long id, string name, DateTime lastPulse, string address, int port, int characterCount, bool locked, double pulseAgeSeconds)
Parameters
idlongnamestringlastPulseDateTimeaddressstringportintcharacterCountintlockedboolpulseAgeSecondsdouble
Fields
Address
public readonly string Address
Field Value
CharacterCount
public readonly int CharacterCount
Field Value
ID
public readonly long ID
Field Value
LastPulse
public readonly DateTime LastPulse
Field Value
Locked
public readonly bool Locked
Field Value
Name
public readonly string Name
Field Value
Port
public readonly int Port
Field Value
PulseAgeSeconds
Seconds since LastPulse, measured by the database clock at the moment the row was read. Never negative.
public readonly double PulseAgeSeconds
Field Value
Remarks
The only form of the pulse a reader in another process can judge liveness by.
last_pulse is stamped by the database clock, and the reader's own host clock
may disagree with it by any amount: comparing LastPulse with
DateTime.UtcNow measured the gap between two clocks as much as the age of the
pulse, so a world server whose host ran a minute fast treated every scene server as
dead, and one running a minute slow kept routing players to a crashed one. The age is
taken inside the statement that reads the row, where both ends are the same clock.