Facepunch.Steamworks Wiki

Steamworks.SteamNetworkingUtils

Undocumented Parental Settings

Properties

Delay all packets by N ms
static float FakeRecvPacketLag { get; set; }
[0 - 100] - Randomly discard N pct of packets
static float FakeRecvPacketLoss { get; set; }
Delay all packets by N ms
static float FakeSendPacketLag { get; set; }
[0 - 100] - Randomly discard N pct of packets
static float FakeSendPacketLoss { get; set; }
Return location info for the current host. It takes a few seconds to initialize access to the relay network. If you call this very soon after startup the data may not be available yet. This always return the most up-to-date information we have..
static Data.PingLocation? LocalPingLocation { get; }
static System.Int64 LocalTimestamp { get; }

Methods

Same as PingLocation.EstimatePingTo, but assumes that one location is the local host. This is a bit faster, especially if you need to calculate a bunch of these in a loop to find the fastest one.
static int EstimatePingTo( Data.PingLocation target );
If you need ping information straight away, wait on this. It will return immediately if you already have up to date ping data
static async Task WaitForPingDataAsync( float maxAgeInSeconds = 300 );

Page Links


Special Pages


Wikis

?

Render Time: 171ms

Session 0
DB GetPage 19
Generate Html 0
SaveChanges 148
Render Body 0
Render Sidebar 1