Skip to main content

MLAPI.Transports.UNET.UNetTransport

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Implements#

ITransportProfilerData

Inherited Members#

NetworkTransport.OnChannelRegistration

NetworkTransport.IsSupported

NetworkTransport.MLAPI_CHANNELS

NetworkTransport.OnTransportEvent

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

MonoBehaviour.IsInvoking()

MonoBehaviour.CancelInvoke()

MonoBehaviour.Invoke(String, Single)

MonoBehaviour.InvokeRepeating(String, Single, Single)

MonoBehaviour.CancelInvoke(String)

MonoBehaviour.IsInvoking(String)

MonoBehaviour.StartCoroutine(String)

MonoBehaviour.StartCoroutine(String, Object)

MonoBehaviour.StartCoroutine(IEnumerator)

MonoBehaviour.StartCoroutine_Auto(IEnumerator)

MonoBehaviour.StopCoroutine(IEnumerator)

MonoBehaviour.StopCoroutine(Coroutine)

MonoBehaviour.StopCoroutine(String)

MonoBehaviour.StopAllCoroutines()

MonoBehaviour.print(Object)

MonoBehaviour.useGUILayout

MonoBehaviour.runInEditMode

Behaviour.enabled

Behaviour.isActiveAndEnabled

Component.GetComponent(Type)

Component.GetComponent<T>()

Component.GetComponent(String)

Component.GetComponentInChildren(Type, Boolean)

Component.GetComponentInChildren(Type)

Component.GetComponentInChildren<T>(Boolean)

Component.GetComponentInChildren<T>()

Component.GetComponentsInChildren(Type, Boolean)

Component.GetComponentsInChildren(Type)

Component.GetComponentsInChildren<T>(Boolean)

Component.GetComponentsInChildren<T>(Boolean, List<T>)"

Component.GetComponentsInChildren<T>()

Component.GetComponentsInChildren<T>(List<T>)"

Component.GetComponentInParent(Type)

Component.GetComponentInParent<T>()

Component.GetComponentsInParent(Type, Boolean)

Component.GetComponentsInParent(Type)

Component.GetComponentsInParent<T>(Boolean)

Component.GetComponentsInParent<T>(Boolean, List<T>)"

Component.GetComponentsInParent<T>()

Component.GetComponents(Type)

Component.GetComponents(Type, List<Component>)

Component.GetComponents<T>(List<T>)"

Component.GetComponents<T>()

Component.CompareTag(String)

Component.SendMessageUpwards(String, Object, SendMessageOptions)

Component.SendMessageUpwards(String, Object)

Component.SendMessageUpwards(String)

Component.SendMessageUpwards(String, SendMessageOptions)

Component.SendMessage(String, Object)

Component.SendMessage(String)

Component.SendMessage(String, Object, SendMessageOptions)

Component.SendMessage(String, SendMessageOptions)

Component.BroadcastMessage(String, Object, SendMessageOptions)

Component.BroadcastMessage(String, Object)

Component.BroadcastMessage(String)

Component.BroadcastMessage(String, SendMessageOptions)

Component.transform

Component.gameObject

Component.tag

Component.rigidbody

Component.rigidbody2D

Component.camera

Component.light

Component.animation

Component.constantForce

Component.renderer

Component.audio

Component.guiText

Component.networkView

Component.guiElement

Component.guiTexture

Component.collider

Component.collider2D

Component.hingeJoint

Component.particleEmitter

Component.particleSystem

Object.GetInstanceID()

Object.GetHashCode()

Object.Equals(Object)

Object.Instantiate(Object, Vector3, Quaternion)

Object.Instantiate(Object, Vector3, Quaternion, Transform)

Object.Instantiate(Object)

Object.Instantiate(Object, Transform)

Object.Instantiate(Object, Transform, Boolean)

Object.Instantiate<T>(T)"

Object.Instantiate<T>(T, Vector3, Quaternion)"

Object.Instantiate<T>(T, Vector3, Quaternion, Transform)"

Object.Instantiate<T>(T, Transform)"

Object.Instantiate<T>(T, Transform, Boolean)"

Object.Destroy(Object, Single)

Object.Destroy(Object)

Object.DestroyImmediate(Object, Boolean)

Object.DestroyImmediate(Object)

Object.FindObjectsOfType(Type)

Object.DontDestroyOnLoad(Object)

Object.DestroyObject(Object, Single)

Object.DestroyObject(Object)

Object.FindSceneObjectsOfType(Type)

Object.FindObjectsOfTypeIncludingAssets(Type)

Object.FindObjectsOfType<T>()

Object.FindObjectOfType<T>()

Object.FindObjectsOfTypeAll(Type)

Object.FindObjectOfType(Type)

Object.ToString()

Object.name

Object.hideFlags

Object.Equals(Object, Object)

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

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

Fields#

Channels#

Declaration#

public List<UNetChannel> Channels

Field Value#

TypeDescription
System.Collections.Generic.List<UNetChannel>

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

MLAPIRelayAddress#

Declaration#

public string MLAPIRelayAddress

Field Value#

TypeDescription
System.String

MLAPIRelayPort#

Declaration#

public int MLAPIRelayPort

Field Value#

TypeDescription
System.Int32

ProfilerEnabled#

Declaration#

public static bool ProfilerEnabled

Field Value#

TypeDescription
System.Boolean

ServerListenPort#

Declaration#

public int ServerListenPort

Field Value#

TypeDescription
System.Int32

ServerWebsocketListenPort#

Declaration#

public int ServerWebsocketListenPort

Field Value#

TypeDescription
System.Int32

SupportWebsocket#

Declaration#

public bool SupportWebsocket

Field Value#

TypeDescription
System.Boolean

UseMLAPIRelay#

Declaration#

public bool UseMLAPIRelay

Field Value#

TypeDescription
System.Boolean

Properties#

ServerClientId#

Declaration#

public override ulong ServerClientId { get; }

Property Value#

TypeDescription
System.UInt64

Overrides#

NetworkTransport.ServerClientId

Methods#

AddMLAPIChannel(NetworkDelivery, ConnectionConfig)#

Declaration#

public int AddMLAPIChannel(NetworkDelivery type, ConnectionConfig config)

Parameters#

TypeNameDescription
NetworkDeliverytype
UnityEngine.Networking.ConnectionConfigconfig

Returns#

TypeDescription
System.Int32

AddUNETChannel(QosType, ConnectionConfig)#

Declaration#

public int AddUNETChannel(QosType type, ConnectionConfig config)

Parameters#

TypeNameDescription
UnityEngine.Networking.QosTypetype
UnityEngine.Networking.ConnectionConfigconfig

Returns#

TypeDescription
System.Int32

BeginNewTick()#

Declaration#

public void BeginNewTick()

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)

GetConfig()#

Declaration#

public ConnectionConfig GetConfig()

Returns#

TypeDescription
UnityEngine.Networking.ConnectionConfig

GetCurrentRtt(UInt64)#

Declaration#

public override ulong GetCurrentRtt(ulong clientId)

Parameters#

TypeNameDescription
System.UInt64clientId

Returns#

TypeDescription
System.UInt64

Overrides#

NetworkTransport.GetCurrentRtt(UInt64)

GetMLAPIClientId(Byte, UInt16, Boolean)#

Declaration#

public ulong GetMLAPIClientId(byte hostId, ushort connectionId, bool isServer)

Parameters#

TypeNameDescription
System.BytehostId
System.UInt16connectionId
System.BooleanisServer

Returns#

TypeDescription
System.UInt64

GetTransportProfilerData()#

Declaration#

public IReadOnlyDictionary<string, int> GetTransportProfilerData()

Returns#

TypeDescription
IReadOnlyDictionary<System.String, System.Int32>

GetUNetConnectionDetails(UInt64, out Byte, out UInt16)#

Declaration#

public void GetUNetConnectionDetails(ulong clientId, out byte hostId, out ushort connectionId)

Parameters#

TypeNameDescription
System.UInt64clientId
System.BytehostId
System.UInt16connectionId

Init()#

Declaration#

public override void Init()

Overrides#

NetworkTransport.Init()

LateUpdate()#

Declaration#

protected void LateUpdate()

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

Declaration#

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

Parameters#

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

Returns#

TypeDescription
NetworkEvent

Overrides#

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

Send(UInt64, ArraySegment<Byte>, NetworkChannel)#

Declaration#

public override void Send(ulong clientId, ArraySegment<byte> data, NetworkChannel networkChannel)

Parameters#

TypeNameDescription
System.UInt64clientId
System.ArraySegment<System.Byte>data
NetworkChannelnetworkChannel

Overrides#

NetworkTransport.Send(UInt64, ArraySegment<Byte>, NetworkChannel)

SendQueued(UInt64)#

Declaration#

public void SendQueued(ulong clientId)

Parameters#

TypeNameDescription
System.UInt64clientId

Shutdown()#

Declaration#

public override void Shutdown()

Overrides#

NetworkTransport.Shutdown()

StartClient()#

Declaration#

public override SocketTasks StartClient()

Returns#

TypeDescription
SocketTasks

Overrides#

NetworkTransport.StartClient()

StartServer()#

Declaration#

public override SocketTasks StartServer()

Returns#

TypeDescription
SocketTasks

Overrides#

NetworkTransport.StartServer()

Implements#

ITransportProfilerData