Table of Contents

Class ServerAddress

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Internal server bind address. For client-facing communication, the address is always Constants.Configuration.GameHost — use Port directly or ServerAddresses.Ports.

Converted from a mutable struct to a class to avoid the pass-by-value silent data loss anti-pattern. The previous struct warning about this has been removed since the class semantics eliminate the issue: instances are passed by reference and mutations are not silently lost.

[Serializable]
public class ServerAddress
Inheritance
ServerAddress
Inherited Members

Fields

Address

IP address or hostname the server binds to. May be null if not yet initialized. Consumers should check for null or empty before use.

NOTE: Per class documentation, Address is always Constants.Configuration.GameHost for client-facing communication. This field exists for future multi-host support.

public string Address

Field Value

string

Port

Port number for the server.

public ushort Port

Field Value

ushort