Struct NetworkEndPoint | Unity Transport | 0.3.1-preview.4
docs.unity3d.com
    Show / Hide Table of Contents

    Struct NetworkEndPoint

    Namespace: Unity.Networking.Transport
    Syntax
    public struct NetworkEndPoint

    Fields

    length

    Declaration
    public int length
    Field Value
    Type Description
    Int32

    rawNetworkAddress

    Declaration
    public NetworkEndPoint.RawNetworkAddress rawNetworkAddress
    Field Value
    Type Description
    NetworkEndPoint.RawNetworkAddress

    Properties

    Address

    Declaration
    public string Address { get; }
    Property Value
    Type Description
    String

    AnyIpv4

    Declaration
    public static NetworkEndPoint AnyIpv4 { get; }
    Property Value
    Type Description
    NetworkEndPoint

    Family

    Declaration
    public NetworkFamily Family { get; set; }
    Property Value
    Type Description
    NetworkFamily

    IsAny

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

    IsLoopback

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

    IsValid

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

    LoopbackIpv4

    Declaration
    public static NetworkEndPoint LoopbackIpv4 { get; }
    Property Value
    Type Description
    NetworkEndPoint

    Port

    Declaration
    public ushort Port { get; set; }
    Property Value
    Type Description
    UInt16

    RawPort

    Declaration
    public ushort RawPort { get; set; }
    Property Value
    Type Description
    UInt16

    Methods

    Equals(Object)

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

    GetHashCode()

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

    GetRawAddressBytes()

    Declaration
    public NativeArray<byte> GetRawAddressBytes()
    Returns
    Type Description
    NativeArray<Byte>

    Parse(String, UInt16, NetworkFamily)

    Declaration
    public static NetworkEndPoint Parse(string address, ushort port, NetworkFamily family = NetworkFamily.Ipv4)
    Parameters
    Type Name Description
    String address
    UInt16 port
    NetworkFamily family
    Returns
    Type Description
    NetworkEndPoint

    SetRawAddressBytes(NativeArray<Byte>, NetworkFamily)

    Declaration
    public void SetRawAddressBytes(NativeArray<byte> bytes, NetworkFamily family = NetworkFamily.Ipv4)
    Parameters
    Type Name Description
    NativeArray<Byte> bytes
    NetworkFamily family

    TryParse(String, UInt16, out NetworkEndPoint, NetworkFamily)

    Declaration
    public static bool TryParse(string address, ushort port, out NetworkEndPoint endpoint, NetworkFamily family = NetworkFamily.Ipv4)
    Parameters
    Type Name Description
    String address
    UInt16 port
    NetworkEndPoint endpoint
    NetworkFamily family
    Returns
    Type Description
    Boolean

    WithPort(UInt16)

    Declaration
    public NetworkEndPoint WithPort(ushort port)
    Parameters
    Type Name Description
    UInt16 port
    Returns
    Type Description
    NetworkEndPoint

    Operators

    Equality(NetworkEndPoint, NetworkEndPoint)

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

    Inequality(NetworkEndPoint, NetworkEndPoint)

    Declaration
    public static bool operator !=(NetworkEndPoint lhs, NetworkEndPoint rhs)
    Parameters
    Type Name Description
    NetworkEndPoint lhs
    NetworkEndPoint 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