Skip to main content

AuthPayloads.PingResponse

A struct in TavernLib, TavernLib.Backend.Auth.

The auth port's answer to a ping: status pong, the server name, whether a password and the whitelist are on, the game, web and console ports, and the mods hash and count.

Constructors​

MemberWhat it is
PingResponse(string serverName, bool passwordRequired, bool whitelistEnabled, int gamePort, int webPort, int consolePort, string modsHash, int? modsCount)Sets every field of the ping response.

Properties​

9 private and internal properties
MemberWhat it is
private int ConsolePort { get; set; }The remote console port, which the launcher finds through this ping.
private int GamePort { get; set; }The game port.
private int? ModsCount { get; set; }Number of enabled server mods, or null if Mods/ couldn't be read.
private string ModsHash { get; set; }Hash of the server's mods, or null if Mods/ couldn't be read.
private bool PasswordRequired { get; set; }Whether the server has a password.
private string Pong { get; }Always pong, sent as status.
private string ServerName { get; set; }The server's name.
private int WebPort { get; set; }The web port.
private bool WhitelistEnabled { get; set; }Whether the whitelist is on.