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
public void SetPeerTimeout( int id, int timeoutLimit, int timeoutMin, int timeoutMax )
[Missing <param name="id"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]
[Missing <param name="timeoutLimit"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]
[Missing <param name="timeoutMin"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]
[Missing <param name="timeoutMax"/> documentation for "M:Godot.NetworkedMultiplayerENet.SetPeerTimeout(System.Int32,System.Int32,System.Int32,System.Int32)"]