Click or drag to resize

NetworkedMultiplayerENetSetPeerTimeout Method

Sets the timeout parameters for a peer.The timeout parameters control how and when a peer will timeout from a failure to acknowledge reliable traffic. Timeout values are expressed in milliseconds.

The timeout_limit is a factor that, multiplied by a value based on the avarage round trip time, will determine the timeout limit for a reliable packet. When that limit is reached, the timeout will be doubled, and the peer will be disconnected if that limit has reached timeout_min. The timeout_max parameter, on the other hand, defines a fixed timeout for which any packet must be acknowledged or the peer will be dropped.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetPeerTimeout(
	int id,
	int timeoutLimit,
	int timeoutMin,
	int timeoutMax
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]

timeoutLimit
Type: SystemInt32

[Missing <param name="timeoutLimit"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]

timeoutMin
Type: SystemInt32

[Missing <param name="timeoutMin"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]

timeoutMax
Type: SystemInt32

[Missing <param name="timeoutMax"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]

See Also