Struct NetworkConfigParameter
The NetworkConfigParameter is used to set specific parameters that the driver uses.
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkConfigParameter : INetworkParameter
Fields
Name | Description |
---|---|
connect |
Time between connection attempts. |
disconnect |
Inactivity timeout for a connection. If nothing is received on a connection for this
amount of time, it is disconnected (a Disconnect event
will be generated). To prevent this from happenning when the game session is simply
quiet, set heartbeat |
fixed |
Fixes a fixed amount of time to be used each frame for the purpose of timeout
calculations. For example, setting this value to 1000 will have the driver consider
that 1 second passed between each call to Schedule |
heartbeat |
Time after which if nothing from a peer is received, a heartbeat message will be sent
to keep the connection alive. Prevents the disconnect |
max |
Maximum number of connection attempts to try. If no answer is received from the server after this number of attempts, a Disconnect event is generated for the connection. |
max |
Maximum amount of time a single frame can advance timeout values. In this scenario, a
frame is defined as the time between two Schedule |
max |
Maximum size of a packet that can be sent by the transport. Note that this size includes
any headers that could be added by the transport (e.g. headers for DTLS or pipelines),
which means the actual maximum message size that can be sent by a user is slightly less
than this value. To find out what the size of these headers is, use
Max |
Methods
Name | Description |
---|---|
Validate() | Validate the settings. |