Class NetworkConnection.PacketStat | Multiplayer HLAPI | 1.0.8
docs.unity.cn
    Show / Hide Table of Contents

    Class NetworkConnection.PacketStat

    Structure used to track the number and size of packets of each packets type.

    Inheritance
    Object
    NetworkConnection.PacketStat
    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
    Int32

    count

    The total number of messages of this type.

    Declaration
    public int count
    Field Value
    Type Description
    Int32

    msgType

    The message type these stats are for.

    Declaration
    public short msgType
    Field Value
    Type Description
    Int16

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    In This Article
    • Constructors
      • PacketStat()
      • PacketStat(NetworkConnection.PacketStat)
    • Fields
      • bytes
      • count
      • msgType
    • Methods
      • ToString()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 15 December 2020