Import std.net.game.settings
std.net.game.settings
std.net.game's settings, which a GameHost and its peers share, and why a connection ends.
std/net/game/settings.fb
Types
DisconnectReason
enum
Public Enum DisconnectReason
Why a connection ended.
std/net/game/settings.fb, line 8
-
It hasn't: an event other than a disconnect's.
-
This side ended it.
-
The other side ended it.
-
Nothing came for the host's Timeout.
-
The other host refused it, as full.
-
The other host refused it, with settings that don't match this one's.
GameSettings
struct
Public Struct GameSettings
What a GameHost does: its channels' kinds, which both sides of a connection must have alike, the most peers that can connect to it, the most bytes a packet takes, the largest message, which both sides must have alike too, the most bytes a connection holds of messages waiting for one before them and of fragments, how long it waits to hear from a peer, how often it sends when it has nothing to, and how often it asks again for a connection.
std/net/game/settings.fb, line 28
-
Its channels' kinds, which both sides of a connection must have alike.
-
The most peers that can connect to it.
-
The most bytes a packet takes.
-
The largest message, in bytes, which both sides must have alike.
-
The most bytes a connection holds of messages waiting for one before them, and of fragments.
-
How long it waits to hear from a peer before it disconnects it.
-
How often it sends when it has nothing to, so its peers hear from it.
-
How often it asks again for a connection that hasn't answered.
-
Channels of those kinds, or else a reliable-ordered, a reliable-unordered, and an unreliable one; 32 peers; packets of 1200 bytes, which any path takes; messages of up to 1 MiB, with 4 MiB held; and a timeout of 10 seconds, with a keepalive and a retry each 250 milliseconds.
Report an issue with this page or with FutureBlitz on GitHub.