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
ConnectionThrottle
The time in milliseconds to wait before an ip is allowed to try and connect again.
public long ConnectionThrottle { get; set; }
Property Value
KeepAliveInterval
public long KeepAliveInterval { get; set; }
Property Value
KeepAliveTimeoutInterval
public long KeepAliveTimeoutInterval { get; set; }
Property Value
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
ShouldThrottle
Returns true if ConnectionThrottle has a value greater than 0.
public bool ShouldThrottle { get; }
Property Value
Methods
Equals(NetworkConfiguration?)
public bool Equals(NetworkConfiguration? other)
Parameters
other
NetworkConfiguration
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NetworkConfiguration?, NetworkConfiguration?)
public static bool operator ==(NetworkConfiguration? left, NetworkConfiguration? right)
Parameters
left
NetworkConfigurationright
NetworkConfiguration
Returns
operator !=(NetworkConfiguration?, NetworkConfiguration?)
public static bool operator !=(NetworkConfiguration? left, NetworkConfiguration? right)
Parameters
left
NetworkConfigurationright
NetworkConfiguration