Skip to main content

Unity.Networking.Transport.INetworkInterface

Inherited Members#

IDisposable.Dispose()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public interface INetworkInterface : IDisposable

Properties#

LocalEndPoint#

Declaration#

NetworkInterfaceEndPoint LocalEndPoint { get; }

Property Value#

TypeDescription
NetworkInterfaceEndPoint

Methods#

Bind(NetworkInterfaceEndPoint)#

Binds the medium to a specific endpoint.

Declaration#

int Bind(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpointA valid NetworkInterfaceEndPoint.

Returns#

TypeDescription
System.Int320 on Success

CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)#

Declaration#

int CreateInterfaceEndPoint(NetworkEndPoint address, out NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkEndPointaddress
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
System.Int32

CreateSendInterface()#

Declaration#

NetworkSendInterface CreateSendInterface()

Returns#

TypeDescription
NetworkSendInterface

GetGenericEndPoint(NetworkInterfaceEndPoint)#

Declaration#

NetworkEndPoint GetGenericEndPoint(NetworkInterfaceEndPoint endpoint)

Parameters#

TypeNameDescription
NetworkInterfaceEndPointendpoint

Returns#

TypeDescription
NetworkEndPoint

Initialize(INetworkParameter[])#

Declaration#

int Initialize(params INetworkParameter[] param)

Parameters#

TypeNameDescription
INetworkParameter[]param

Returns#

TypeDescription
System.Int32

ScheduleReceive(NetworkPacketReceiver, JobHandle)#

Schedule a ReceiveJob. This is used to read data from your supported medium and pass it to the AppendData function supplied by NetworkDriver

Declaration#

JobHandle ScheduleReceive(NetworkPacketReceiver receiver, JobHandle dep)

Parameters#

TypeNameDescription
NetworkPacketReceiverreceiverA NetworkDriver used to parse the data received.
Unity.Jobs.JobHandledepA Unity.Jobs.JobHandle to any dependency we might have.

Returns#

TypeDescription
Unity.Jobs.JobHandleA Unity.Jobs.JobHandle to our newly created ScheduleReceive Job.

ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle)#

Schedule a SendJob. This is used to flush send queues to your supported medium

Declaration#

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

Parameters#

TypeNameDescription
NativeQueue<QueuedSendMessage>sendQueueThe send queue which can be used to emulate parallel send.
Unity.Jobs.JobHandledepA Unity.Jobs.JobHandle to any dependency we might have.

Returns#

TypeDescription
Unity.Jobs.JobHandleA Unity.Jobs.JobHandle to our newly created ScheduleSend Job.