Nebula
Protocol

ProtocolCompatibility

Checks client protocol and game content versions against the gateway's supported range.

generated from the sources
public static class ProtocolCompatibility

Checks client protocol and game content versions against the gateway's supported range.

The window is HelloMsg.MinProtocolVersion to HelloMsg.ProtocolVersion, which is 19 to 20 today. Gateway-to-worker and worker-to-worker connections require HelloMsg.ProtocolVersion exactly.

Methods

ClientProtocolAccepted

public static bool ClientProtocolAccepted(ushort version);

Returns whether the client's protocol is within the gateway's inclusive supported range.

WindowText

public static string WindowText();

Formats the supported protocol range for logs and refusal messages.

MinContentVersion

public static uint MinContentVersion(uint server, uint configuredMin);

Returns the minimum accepted content version. A zero minimum or one greater than server uses the server's version, requiring an exact match.

ContentVersionAccepted

public static bool ContentVersionAccepted(uint client, uint server, uint configuredMin);

Returns whether the client's content version is within the configured inclusive range. A server value of zero accepts every content version.

On this page