Struct NetworkParameterConstants
Default values used for the different network parameters. These parameters (except the MTU)
can be set with With
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkParameterConstants
Fields
Name | Description |
---|---|
Connect |
Default time between connection attempts. |
Disconnect |
Default 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). |
Driver |
Default size of the internal buffer for received payloads. |
Heartbeat |
Default amount of time after which if nothing from a peer is received, a heartbeat message will be sent to keep the connection alive. |
Initial |
The default initial size of the event queue. |
Invalid |
Unused. |
MTU | Same as Max |
Max |
Default 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 |
Default 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 |