docs.unity3d.com
    Show / Hide Table of Contents

    Struct NetworkInterfaceEndPoint

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

    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    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
    Int32

    k_MaxLength

    Maximum length of the interface endpoint's raw representation.

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

    Properties

    IsValid

    Whether the interface endpoint is valid or not.

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

    Methods

    Equals(Object)

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

    Equals(NetworkInterfaceEndPoint)

    Declaration
    public bool Equals(NetworkInterfaceEndPoint other)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint other
    Returns
    Type Description
    Boolean
    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    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

    Equality(NetworkInterfaceEndPoint, NetworkInterfaceEndPoint)

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

    Inequality(NetworkInterfaceEndPoint, NetworkInterfaceEndPoint)

    Declaration
    public static bool operator !=(NetworkInterfaceEndPoint lhs, NetworkInterfaceEndPoint rhs)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint lhs
    NetworkInterfaceEndPoint rhs
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023