Struct BaselibNetworkInterface
Obsolete. Use UDPNetworkInterface instead.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
[Obsolete("BaselibNetworkInterface has been deprecated. Use UDPNetworkInterface instead (UnityUpgradable) -> UDPNetworkInterface")]
public struct BaselibNetworkInterface : INetworkInterface, IDisposable
Properties
Name | Description |
---|---|
LocalEndpoint | Gets the local endpoint that the interface will use to communicate on the network.
This call only makes sense after Bind(NetworkEndpoint) has already been called, and
represents the endpoint the interface is actually bound to. This property serves the
same purpose as |
Methods
Name | Description |
---|---|
Bind(NetworkEndpoint) | Binds the network interface to an endpoint. This is meant to act the same way as the
|
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Initialize(ref NetworkSettings, ref int) | Initialize the network interface with the given settings. |
Listen() | Start listening for incoming connections. Unlike Bind(NetworkEndpoint) which will always be called on clients and servers, this is only meant to be called on servers. |
ScheduleReceive(ref ReceiveJobArguments, JobHandle) | Schedule a receive job. This job's responsibility is to read data from the network and enqueue it in ReceiveQueue. |
ScheduleSend(ref SendJobArguments, JobHandle) | Schedule a send job. This job's responsibility is to flush any data stored in SendQueue to the network. |