Skip to main content

Unity.Networking.Transport.NetworkEndPoint

Inherited Members#

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public struct NetworkEndPoint

Fields#

length#

Declaration#

public int length

Field Value#

TypeDescription
System.Int32

Properties#

Address#

Declaration#

public string Address { get; }

Property Value#

TypeDescription
System.String

AnyIpv4#

Declaration#

public static NetworkEndPoint AnyIpv4 { get; }

Property Value#

TypeDescription
NetworkEndPoint

AnyIpv6#

Declaration#

public static NetworkEndPoint AnyIpv6 { get; }

Property Value#

TypeDescription
NetworkEndPoint

Family#

Declaration#

public NetworkFamily Family { get; set; }

Property Value#

TypeDescription
NetworkFamily

IsAny#

Declaration#

public bool IsAny { get; }

Property Value#

TypeDescription
System.Boolean

IsLoopback#

Declaration#

public bool IsLoopback { get; }

Property Value#

TypeDescription
System.Boolean

IsValid#

Declaration#

public bool IsValid { get; }

Property Value#

TypeDescription
System.Boolean

LoopbackIpv4#

Declaration#

public static NetworkEndPoint LoopbackIpv4 { get; }

Property Value#

TypeDescription
NetworkEndPoint

LoopbackIpv6#

Declaration#

public static NetworkEndPoint LoopbackIpv6 { get; }

Property Value#

TypeDescription
NetworkEndPoint

Port#

Declaration#

public ushort Port { get; set; }

Property Value#

TypeDescription
System.UInt16

RawPort#

Declaration#

public ushort RawPort { get; set; }

Property Value#

TypeDescription
System.UInt16

Methods#

Equals(Object)#

Declaration#

public override bool Equals(object other)

Parameters#

TypeNameDescription
System.Objectother

Returns#

TypeDescription
System.Boolean

Overrides#

System.ValueType.Equals(System.Object)

GetHashCode()#

Declaration#

public override int GetHashCode()

Returns#

TypeDescription
System.Int32

Overrides#

System.ValueType.GetHashCode()

GetRawAddressBytes()#

Declaration#

public NativeArray<byte> GetRawAddressBytes()

Returns#

TypeDescription
Unity.Collections.NativeArray<System.Byte>

Parse(String, UInt16, NetworkFamily)#

Declaration#

public static NetworkEndPoint Parse(string address, ushort port, NetworkFamily family = NetworkFamily.Ipv4)

Parameters#

TypeNameDescription
System.Stringaddress
System.UInt16port
NetworkFamilyfamily

Returns#

TypeDescription
NetworkEndPoint

SetRawAddressBytes(NativeArray<Byte>, NetworkFamily)#

Declaration#

public void SetRawAddressBytes(NativeArray<byte> bytes, NetworkFamily family = NetworkFamily.Ipv4)

Parameters#

TypeNameDescription
Unity.Collections.NativeArray<System.Byte>bytes
NetworkFamilyfamily

TryParse(String, UInt16, out NetworkEndPoint, NetworkFamily)#

Declaration#

public static bool TryParse(string address, ushort port, out NetworkEndPoint endpoint, NetworkFamily family = NetworkFamily.Ipv4)

Parameters#

TypeNameDescription
System.Stringaddress
System.UInt16port
NetworkEndPointendpoint
NetworkFamilyfamily

Returns#

TypeDescription
System.Boolean

WithPort(UInt16)#

Declaration#

public NetworkEndPoint WithPort(ushort port)

Parameters#

TypeNameDescription
System.UInt16port

Returns#

TypeDescription
NetworkEndPoint

Operators#

Equality(NetworkEndPoint, NetworkEndPoint)#

Declaration#

public static bool operator ==(NetworkEndPoint lhs, NetworkEndPoint rhs)

Parameters#

TypeNameDescription
NetworkEndPointlhs
NetworkEndPointrhs

Returns#

TypeDescription
System.Boolean

Inequality(NetworkEndPoint, NetworkEndPoint)#

Declaration#

public static bool operator !=(NetworkEndPoint lhs, NetworkEndPoint rhs)

Parameters#

TypeNameDescription
NetworkEndPointlhs
NetworkEndPointrhs

Returns#

TypeDescription
System.Boolean