Class NetworkTraficStatistics
Inheritance
System.Object
NetworkTraficStatistics
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FishNet.Managing.Statistic
Assembly: FishNet.Runtime.dll
Syntax
[Serializable]
public class NetworkTraficStatistics
Properties
UpdateClient
True to update client statistics.
Declaration
public bool UpdateClient { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
UpdateServer
True to update client statistics.
Declaration
public bool UpdateServer { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
FormatBytesToLargest(UInt64)
Formats passed in bytes value to the largest possible data type with 2 decimals.
Declaration
public static string FormatBytesToLargest(ulong bytes)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | bytes |
Returns
Type | Description |
---|---|
System.String |
LocalClientReceivedData(UInt64)
Called when the local client receives data.
Declaration
public void LocalClientReceivedData(ulong dataLength)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | dataLength |
LocalServerReceivedData(UInt64)
Called when the local client receives data.
Declaration
public void LocalServerReceivedData(ulong dataLength)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | dataLength |
SetUpdateClient(Boolean)
Sets UpdateClient value.
Declaration
public void SetUpdateClient(bool update)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | update |
SetUpdateServer(Boolean)
Sets UpdateServer value.
Declaration
public void SetUpdateServer(bool update)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | update |
Events
OnClientNetworkTraffic
Called when NetworkTraffic is updated for the client.
Declaration
public event Action<NetworkTrafficArgs> OnClientNetworkTraffic
Event Type
Type | Description |
---|---|
System.Action<NetworkTrafficArgs> |
OnServerNetworkTraffic
Called when NetworkTraffic is updated for the server.
Declaration
public event Action<NetworkTrafficArgs> OnServerNetworkTraffic
Event Type
Type | Description |
---|---|
System.Action<NetworkTrafficArgs> |