Class PortOwners
- Namespace
- McServerLauncher.Views.ServerSettings
- Assembly
- McServerLauncher.dll
Who already has a port: the name of another server on it, or null when none is.
public sealed record PortOwners : IEquatable<PortOwners>
- Inheritance
-
PortOwners
- Implements
- Inherited Members
Remarks
Lets the page refuse a port by saying whose it is. Two servers on one Java port fail to start, or to wake on demand, one of them; two on one Bedrock port end up behind one tunnel.
Constructors
PortOwners(Func<int, string?>, Func<int, string?>)
Who already has a port: the name of another server on it, or null when none is.
public PortOwners(Func<int, string?> Java, Func<int, string?> Bedrock)
Parameters
JavaFunc<int, string>Another server whose
server-portthis is.BedrockFunc<int, string>Another server whose Bedrock port this is.
Remarks
Lets the page refuse a port by saying whose it is. Two servers on one Java port fail to start, or to wake on demand, one of them; two on one Bedrock port end up behind one tunnel.
Fields
None
Nobody else: for a page with no other servers to ask about.
public static readonly PortOwners None
Field Value
Properties
Bedrock
Another server whose Bedrock port this is.
public Func<int, string?> Bedrock { get; init; }
Property Value
Java
Another server whose server-port this is.
public Func<int, string?> Java { get; init; }