Table of Contents

Class CoreServer

Namespace
FishMMO.Server.Core
Assembly
FishMMO.Server.dll

Core, engine-agnostic server logic: configuration and lifecycle event dispatching.

public class CoreServer : ICoreServer
Inheritance
CoreServer
Implements
Inherited Members

Constructors

CoreServer(IServerConfiguration, IServerEvents)

Initializes a new instance of the CoreServer class.

public CoreServer(IServerConfiguration config, IServerEvents events)

Parameters

config IServerConfiguration

The server configuration provider.

events IServerEvents

The server events handler.

Properties

Address

Gets the local address of the server.

public string Address { get; }

Property Value

string

Port

Gets the port number the server is listening on.

public ushort Port { get; }

Property Value

ushort

RemoteAddress

Gets the remote address of the server.

public string RemoteAddress { get; }

Property Value

string

Methods

Deinitialize()

Deinitializes the core server, releasing resources as needed.

public void Deinitialize()

Initialize(string, string)

Initializes the core server with the specified remote address and server type name.

public void Initialize(string remoteAddress, string serverTypeName)

Parameters

remoteAddress string

The remote address to use for initialization.

serverTypeName string

The name of the server type.

Exceptions

InvalidOperationException

Thrown if the server type is invalid.