docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkInterfaceEndPoint

    Representation of an endpoint, to be used internally by INetworkInterface.

    Implements
    IEquatable<NetworkInterfaceEndPoint>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct NetworkInterfaceEndPoint : IEquatable<NetworkInterfaceEndPoint>

    Fields

    data

    Raw representation of the interface endpoint.

    Declaration
    public byte* data
    Field Value
    Type Description
    byte*

    dataLength

    Actual length of the interface endpoint's raw representation.

    Declaration
    public int dataLength
    Field Value
    Type Description
    int

    k_MaxLength

    Maximum length of the interface endpoint's raw representation.

    Declaration
    public const int k_MaxLength = 56
    Field Value
    Type Description
    int

    Properties

    IsValid

    Whether the interface endpoint is valid or not.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    Equals(NetworkInterfaceEndPoint)

    Declaration
    public bool Equals(NetworkInterfaceEndPoint other)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint other
    Returns
    Type Description
    bool

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToFixedString()

    Returns the NetworkInterfaceEndPoint as a FixedString64Bytes.

    Declaration
    public FixedString64Bytes ToFixedString()
    Returns
    Type Description
    FixedString64Bytes

    Fixed string representation of the endpoint.

    ToString()

    Returns the NetworkInterfaceEndPoint as a string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(NetworkInterfaceEndPoint, NetworkInterfaceEndPoint)

    Declaration
    public static bool operator ==(NetworkInterfaceEndPoint lhs, NetworkInterfaceEndPoint rhs)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint lhs
    NetworkInterfaceEndPoint rhs
    Returns
    Type Description
    bool

    operator !=(NetworkInterfaceEndPoint, NetworkInterfaceEndPoint)

    Declaration
    public static bool operator !=(NetworkInterfaceEndPoint lhs, NetworkInterfaceEndPoint rhs)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint lhs
    NetworkInterfaceEndPoint rhs
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)