Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkTransport.GetRemotePacketReceivedRate

Switch to Manual
public static function GetRemotePacketReceivedRate(hostId: int, connectionId: int, out error: byte): int;

Parameters

hostId Id of udp socket used to.
connectionId Id of connection.
error Possible error.

Description

Get received rate in bytes per second for remote peer, comparison with local send rate can give information how many bytes was lost.