Struct PingMessage
PING (0x84): mandatory at the catalog's pingHz; its LastAppliedTick drives the server's lag skip.
public readonly struct PingMessage : IEquatable<PingMessage>
- Implements
- Inherited Members
Constructors
PingMessage(uint, uint)
PING (0x84): mandatory at the catalog's pingHz; its LastAppliedTick drives the server's lag skip.
public PingMessage(uint ClientMs, uint LastAppliedTick)
Parameters
Properties
ClientMs
public uint ClientMs { get; init; }
Property Value
LastAppliedTick
public uint LastAppliedTick { get; init; }
Property Value
Methods
Deconstruct(out uint, out uint)
public void Deconstruct(out uint ClientMs, out uint LastAppliedTick)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(PingMessage)
public bool Equals(PingMessage other)
Parameters
otherPingMessage
Returns
GetHashCode()
public override int GetHashCode()
Returns
Parse(ReadOnlySpan<byte>)
Reads a whole PING message: its type byte, its body, and nothing after it.
public static PingMessage Parse(ReadOnlySpan<byte> message)
Parameters
messageReadOnlySpan<byte>The message.
Returns
- PingMessage
The message.
Read(ref WireReader)
Reads the message body; the type byte has already been read.
public static PingMessage Read(ref WireReader reader)
Parameters
readerWireReaderThe reader, positioned after the type byte.
Returns
- PingMessage
The message.
ToString()
public override string ToString()
Returns
Write(ref WireWriter)
Writes the message, type byte included.
public void Write(ref WireWriter writer)
Parameters
writerWireWriterThe writer.
Operators
operator ==(PingMessage, PingMessage)
public static bool operator ==(PingMessage left, PingMessage right)
Parameters
leftPingMessagerightPingMessage
Returns
operator !=(PingMessage, PingMessage)
public static bool operator !=(PingMessage left, PingMessage right)
Parameters
leftPingMessagerightPingMessage