Skip to main content

Unity.Netcode.Transports.UNET.UNetTransport

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

NetworkTransport.IsSupported

NetworkTransport.OnTransportEvent

NetworkTransport.InvokeOnTransportEvent(NetworkEvent, UInt64, ArraySegment\<Byte>, Single)

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public class UNetTransport : NetworkTransport

ConnectAddress#

Declaration#

public string ConnectAddress

Field Value#

TypeDescription
System.String

ConnectPort#

Declaration#

public int ConnectPort

Field Value#

TypeDescription
System.Int32

MaxConnections#

Declaration#

public int MaxConnections

Field Value#

TypeDescription
System.Int32

MaxSentMessageQueueSize#

Declaration#

public int MaxSentMessageQueueSize

Field Value#

TypeDescription
System.Int32

MessageBufferSize#

Declaration#

public int MessageBufferSize

Field Value#

TypeDescription
System.Int32

MessageSendMode#

Declaration#

public UNetTransport.SendMode MessageSendMode

Field Value#

TypeDescription
UNetTransport.SendMode

ServerListenPort#

Declaration#

public int ServerListenPort

Field Value#

TypeDescription
System.Int32

#

ServerClientId#

Declaration#

public override ulong ServerClientId { get; }

Property Value#

TypeDescription
System.UInt64

Overrides#

NetworkTransport.ServerClientId

#

DisconnectLocalClient()#

Declaration#

public override void DisconnectLocalClient()

Overrides#

NetworkTransport.DisconnectLocalClient()

DisconnectRemoteClient(UInt64)#

Declaration#

public override void DisconnectRemoteClient(ulong clientId)

Parameters#

TypeNameDescription
System.UInt64clientId

Overrides#

NetworkTransport.DisconnectRemoteClient(UInt64)

GetCurrentRtt(UInt64)#

Declaration#

public override ulong GetCurrentRtt(ulong clientId)

Parameters#

TypeNameDescription
System.UInt64clientId

Returns#

TypeDescription
System.UInt64

Overrides#

NetworkTransport.GetCurrentRtt(UInt64)

Initialize()#

Declaration#

public override void Initialize()

Overrides#

NetworkTransport.Initialize()

LateUpdate()#

Declaration#

protected void LateUpdate()

PollEvent(out UInt64, out ArraySegment\<Byte>, out Single)#

Declaration#

public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte> payload, out float receiveTime)

Parameters#

TypeNameDescription
System.UInt64clientId
System.ArraySegment\<System.Byte>payload
System.SinglereceiveTime

Returns#

TypeDescription
NetworkEvent

Overrides#

NetworkTransport.PollEvent(out UInt64, out ArraySegment\<Byte>, out Single)

Send(UInt64, ArraySegment\<Byte>, NetworkDelivery)#

Declaration#

public override void Send(ulong clientId, ArraySegment<byte> payload, NetworkDelivery networkDelivery)

Parameters#

TypeNameDescription
System.UInt64clientId
System.ArraySegment\<System.Byte>payload
NetworkDeliverynetworkDelivery

Overrides#

NetworkTransport.Send(UInt64, ArraySegment\<Byte>, NetworkDelivery)

Shutdown()#

Declaration#

public override void Shutdown()

Overrides#

NetworkTransport.Shutdown()

StartClient()#

Declaration#

public override bool StartClient()

Returns#

TypeDescription
System.Boolean

Overrides#

NetworkTransport.StartClient()

StartServer()#

Declaration#

public override bool StartServer()

Returns#

TypeDescription
System.Boolean

Overrides#

NetworkTransport.StartServer()