Skip to main content

Unity.Networking.Transport.INetworkInterface

Inherited Members#

IDisposable.Dispose()

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

LocalEndPoint#

Declaration#

NetworkInterfaceEndPoint LocalEndPoint { get; }

Property Value#

TypeDescription
NetworkInterfaceEndPoint

#

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(NetworkSettings)#

Declaration#

int Initialize(NetworkSettings settings)

Parameters#

TypeNameDescription
NetworkSettingssettings

Returns#

TypeDescription
System.Int32

Listen()#

Start listening for incoming connections. This is normally a no-op for real UDP sockets.

Declaration#

int Listen()

Returns#

TypeDescription
System.Int320 on Success

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.
JobHandledepA to any dependency we might have.

Returns#

TypeDescription
JobHandleA 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.
JobHandledepA to any dependency we might have.

Returns#

TypeDescription
JobHandleA to our newly created ScheduleSend Job.