Struct BaselibNetworkInterface
Default NetworkInterface implementation based on Unity's internal Baselib UDP sockets this is ensure to work on all platforms except for Unity's WebGL.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
[BurstCompile]
public struct BaselibNetworkInterface : INetworkInterface, IDisposable
Fields
| Name | Description |
|---|---|
| DefaultParameters | Default Parameters for BaselibNetworkInterface |
Properties
| Name | Description |
|---|---|
| IsCreated | Gets if the interface has been created. |
| LocalEndPoint | Returns the local endpoint the BaselibNetworkInterface is bound to. |
Methods
| Name | Description |
|---|---|
| Bind(NetworkInterfaceEndPoint) | Binds the medium to a specific endpoint. |
| CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint) | Converts a generic NetworkEndPoint to its NetworkInterfaceEndPoint version for the BaselibNetworkInterface. |
| CreateSendInterface() | Creates the send interface |
| Dispose() | Disposes this instance |
| GetGenericEndPoint(NetworkInterfaceEndPoint) | Converts a NetworkInterfaceEndPoint to its generic NetworkEndPoint version. |
| Initialize(NetworkSettings) | Initializes a instance of the BaselibNetworkInterface struct. |
| Listen() | Listens on the socket, currently this Interface doesn't support listening as its UDP based. |
| 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 |
| ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle) | Schedule a SendJob. This is used to flush send queues to your supported medium |