Difference between revisions of "enet.peer:last round trip time"
(Created page with "Returns or sets the round trip time of the previous round trip time computation. If value is nil the current value of the peer is returned. Otherwise the the ...") |
(Separated the two functionalities.) |
||
Line 3: | Line 3: | ||
ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up you can set the value of the last round trip time to a more accurate guess. | ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up you can set the value of the last round trip time to a more accurate guess. | ||
== Function == | == Function == | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | peer:last_round_trip_time() | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | None. | ||
+ | === Returns === | ||
+ | {{param|number|lastroundtriptime|The [[enet.peer | peer's]] last round trip time computation in milliseconds.}} | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 8: | Line 16: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|value| | + | {{param|number|value|Integer value to be used as the last round trip time.}} |
=== Returns === | === Returns === | ||
− | + | Nothing. | |
− | |||
== See Also == | == See Also == | ||
* [[parent::lua-enet]] | * [[parent::lua-enet]] |
Latest revision as of 02:10, 30 October 2016
Returns or sets the round trip time of the previous round trip time computation. If value is nil the current value of the peer is returned. Otherwise the the previous round trip time computation is set to the specified value and returned.
ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up you can set the value of the last round trip time to a more accurate guess.
Contents
Function
Synopsis
peer:last_round_trip_time()
Arguments
None.
Returns
Synopsis
peer:last_round_trip_time(value)
Arguments
number value
- Integer value to be used as the last round trip time.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info