Class ServerSettings
- Namespace
- BSGameLib.Server
- Assembly
- BSGameLib.Server.dll
The default IServerSettings, for a server configured in code.
public class ServerSettings : IServerSettings
- Inheritance
-
ServerSettings
- Implements
- Inherited Members
Constructors
ServerSettings()
Creates settings with the default application ID and listen port, 55237.
public ServerSettings()
ServerSettings(string)
Creates settings for applicationId, with the default listen port, 55237.
public ServerSettings(string applicationId)
Parameters
applicationIdstring
Properties
ApplicationId
The application's name. The server uses it to name its development certificate, and it is written to the startup log.
public string ApplicationId { get; set; }
Property Value
BindAddress
The IP address the server listens on, for its QUIC listener and its UDP socket. Null, the default, is every address: IPv6 and IPv4 together where the host has IPv6. An address such as "127.0.0.1" or "::1" listens on that one only, so the server is not reachable from other machines. Give an IP address, not a host name; anything else stops the server at startup.
public string BindAddress { get; set; }
Property Value
CertificateStorePath
Directory the auto-generated self-signed dev certificate is persisted to and reloaded from on restart, so its identity stays stable across TOFU-pinned clients. When null, it defaults to a "certs" folder in DataFolder, and a relative path is resolved against that folder too. Ignored when QuicConfiguration is set.
public string CertificateStorePath { get; set; }
Property Value
ListenPort
The UDP port the server listens on. The game's unreliable traffic uses ListenPort +
2, and ListenPort + 1 is unused. A value of 0 gives the default, 55237.
public int ListenPort { get; set; }
Property Value
QuicConfiguration
QUIC transport configuration. When null, a self-signed dev certificate is generated automatically. Set this in production to use a trusted certificate.
public QuicTransportConfiguration QuicConfiguration { get; set; }