Table of Contents

Class NetworkConfiguration

Namespace
Obsidian.API.Configuration
Assembly
Obsidian.API.dll
public sealed record NetworkConfiguration : IEquatable<NetworkConfiguration>
Inheritance
NetworkConfiguration
Implements
Inherited Members

Constructors

NetworkConfiguration()

public NetworkConfiguration()

Properties

CompressionThreshold

The max amount of bytes that can be sent to the client before compression is required.

public int CompressionThreshold { get; set; }

Property Value

int

ConnectionThrottle

The time in milliseconds to wait before an ip is allowed to try and connect again.

public long ConnectionThrottle { get; set; }

Property Value

long

KeepAliveInterval

public long KeepAliveInterval { get; set; }

Property Value

long

KeepAliveTimeoutInterval

public long KeepAliveTimeoutInterval { get; set; }

Property Value

long

MulitplayerDebugMode

If true, each login/client gets a random username where multiple connections from the same host will be allowed.

public bool MulitplayerDebugMode { get; set; }

Property Value

bool

ShouldThrottle

Returns true if ConnectionThrottle has a value greater than 0.

public bool ShouldThrottle { get; }

Property Value

bool

Methods

Equals(NetworkConfiguration?)

public bool Equals(NetworkConfiguration? other)

Parameters

other NetworkConfiguration

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(NetworkConfiguration?, NetworkConfiguration?)

public static bool operator ==(NetworkConfiguration? left, NetworkConfiguration? right)

Parameters

left NetworkConfiguration
right NetworkConfiguration

Returns

bool

operator !=(NetworkConfiguration?, NetworkConfiguration?)

public static bool operator !=(NetworkConfiguration? left, NetworkConfiguration? right)

Parameters

left NetworkConfiguration
right NetworkConfiguration

Returns

bool