Class NetworkConnection.PacketStat
Structure used to track the number and size of packets of each packets type.
Inheritance
System.Object
NetworkConnection.PacketStat
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Networking
Syntax
public class PacketStat
Constructors
PacketStat()
Declaration
public PacketStat()
PacketStat(NetworkConnection.PacketStat)
Declaration
public PacketStat(NetworkConnection.PacketStat s)
Parameters
Type | Name | Description |
---|---|---|
NetworkConnection.PacketStat | s |
Fields
bytes
Total bytes of all messages of this type.
Declaration
public int bytes
Field Value
Type | Description |
---|---|
System.Int32 |
count
The total number of messages of this type.
Declaration
public int count
Field Value
Type | Description |
---|---|
System.Int32 |
msgType
The message type these stats are for.
Declaration
public short msgType
Field Value
Type | Description |
---|---|
System.Int16 |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()