Table of Contents

Struct PingMessage

Namespace
Typhon.Protocol
Assembly
Typhon.Protocol.dll

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

ClientMs uint
LastAppliedTick uint

Properties

ClientMs

public uint ClientMs { get; init; }

Property Value

uint

LastAppliedTick

public uint LastAppliedTick { get; init; }

Property Value

uint

Methods

Deconstruct(out uint, out uint)

public void Deconstruct(out uint ClientMs, out uint LastAppliedTick)

Parameters

ClientMs uint
LastAppliedTick uint

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(PingMessage)

public bool Equals(PingMessage other)

Parameters

other PingMessage

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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

message ReadOnlySpan<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

reader WireReader

The reader, positioned after the type byte.

Returns

PingMessage

The message.

ToString()

public override string ToString()

Returns

string

Write(ref WireWriter)

Writes the message, type byte included.

public void Write(ref WireWriter writer)

Parameters

writer WireWriter

The writer.

Operators

operator ==(PingMessage, PingMessage)

public static bool operator ==(PingMessage left, PingMessage right)

Parameters

left PingMessage
right PingMessage

Returns

bool

operator !=(PingMessage, PingMessage)

public static bool operator !=(PingMessage left, PingMessage right)

Parameters

left PingMessage
right PingMessage

Returns

bool