Skip to main content

Unity.Networking.Transport.BaselibNetworkInterface

Implements#

INetworkInterface

System.IDisposable

Inherited Members#

ValueType.Equals(Object)

ValueType.GetHashCode()

ValueType.ToString()

Object.Equals(Object, Object)

Object.GetType()

Object.ReferenceEquals(Object, Object)

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public struct BaselibNetworkInterface : INetworkInterface, IDisposable

Fields#

DefaultParameters#

Declaration#

public static BaselibNetworkParameter DefaultParameters

Field Value#

TypeDescription
BaselibNetworkParameter

Properties#

IsCreated#

Declaration#

public bool IsCreated { get; }

Property Value#

TypeDescription
System.Boolean

LocalEndPoint#

Returns the local endpoint.

Declaration#

public NetworkInterfaceEndPoint LocalEndPoint { get; }

Property Value#

TypeDescription
NetworkInterfaceEndPointNetworkInterfaceEndPoint

Methods#

Bind(NetworkInterfaceEndPoint)#

Binds the BaselibNetworkInterface to the endpoint passed.

Declaration#

public int Bind(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpointA valid ipv4 or ipv6 address

Returns#

TypeDescription
System.Int32int

CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)#

Creates a interface endpoint.

Declaration#

public int CreateInterfaceEndPoint(NetworkEndPoint address, out NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkEndPointaddress
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
System.Int32NetworkInterfaceEndPoint

CreateSendInterface()#

Declaration#

public NetworkSendInterface CreateSendInterface()

Returns#

TypeDescription
NetworkSendInterface

Dispose()#

Declaration#

public void Dispose()

GetGenericEndPoint(NetworkInterfaceEndPoint)#

Declaration#

public NetworkEndPoint GetGenericEndPoint(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
NetworkEndPoint

Initialize(INetworkParameter[])#

Initializes a instance of the BaselibNetworkInterface struct.

Declaration#

public int Initialize(params INetworkParameter[] param)

Parameters#

TypeNameDescription
INetworkParameter[]paramAn array of INetworkParameter. There is currently only BaselibNetworkParameter that can be passed.

Returns#

TypeDescription
System.Int32

ScheduleReceive(NetworkPacketReceiver, JobHandle)#

Declaration#

public JobHandle ScheduleReceive(NetworkPacketReceiver receiver, JobHandle dep)

Parameters#

TypeNameDescription
NetworkPacketReceiverreceiver
Unity.Jobs.JobHandledep

Returns#

TypeDescription
Unity.Jobs.JobHandle

ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle)#

Declaration#

public JobHandle ScheduleSend(NativeQueue<QueuedSendMessage> sendQueue, JobHandle dep)

Parameters#

TypeNameDescription
NativeQueue<QueuedSendMessage>sendQueue
Unity.Jobs.JobHandledep

Returns#

TypeDescription
Unity.Jobs.JobHandle

Implements#

INetworkInterface

System.IDisposable