docs.unity3d.com
    Show / Hide Table of Contents

    Struct UDPNetworkInterface

    Namespace: Unity.Networking.Transport.Samples
    Syntax
    public struct UDPNetworkInterface : INetworkInterface, IDisposable

    Properties

    LocalEndPoint

    Declaration
    public readonly NetworkInterfaceEndPoint LocalEndPoint { get; }
    Property Value
    Type Description
    NetworkInterfaceEndPoint
    Implements
    INetworkInterface.LocalEndPoint

    Methods

    BeginSendMessage(out NetworkInterfaceSendHandle, IntPtr, Int32)

    Declaration
    public static int BeginSendMessage(out NetworkInterfaceSendHandle handle, IntPtr userData, int requiredPayloadSize)
    Parameters
    Type Name Description
    NetworkInterfaceSendHandle handle
    IntPtr userData
    Int32 requiredPayloadSize
    Returns
    Type Description
    Int32

    Bind(NetworkInterfaceEndPoint)

    Declaration
    public int Bind(NetworkInterfaceEndPoint endpoint)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint endpoint
    Returns
    Type Description
    Int32
    Implements
    INetworkInterface.Bind(NetworkInterfaceEndPoint)

    CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)

    Declaration
    public int CreateInterfaceEndPoint(NetworkEndPoint address, out NetworkInterfaceEndPoint endpoint)
    Parameters
    Type Name Description
    NetworkEndPoint address
    NetworkInterfaceEndPoint endpoint
    Returns
    Type Description
    Int32
    Implements
    INetworkInterface.CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)

    CreateSendInterface()

    Declaration
    public NetworkSendInterface CreateSendInterface()
    Returns
    Type Description
    NetworkSendInterface
    Implements
    INetworkInterface.CreateSendInterface()

    Dispose()

    Declaration
    public void Dispose()

    EndSendMessage(ref NetworkInterfaceSendHandle, ref NetworkInterfaceEndPoint, IntPtr, ref NetworkSendQueueHandle)

    Declaration
    public static int EndSendMessage(ref NetworkInterfaceSendHandle handle, ref NetworkInterfaceEndPoint address, IntPtr userData, ref NetworkSendQueueHandle sendQueue)
    Parameters
    Type Name Description
    NetworkInterfaceSendHandle handle
    NetworkInterfaceEndPoint address
    IntPtr userData
    NetworkSendQueueHandle sendQueue
    Returns
    Type Description
    Int32

    GetGenericEndPoint(NetworkInterfaceEndPoint)

    Declaration
    public NetworkEndPoint GetGenericEndPoint(NetworkInterfaceEndPoint endpoint)
    Parameters
    Type Name Description
    NetworkInterfaceEndPoint endpoint
    Returns
    Type Description
    NetworkEndPoint
    Implements
    INetworkInterface.GetGenericEndPoint(NetworkInterfaceEndPoint)

    Initialize(NetworkSettings)

    Declaration
    public int Initialize(NetworkSettings settings)
    Parameters
    Type Name Description
    NetworkSettings settings
    Returns
    Type Description
    Int32
    Implements
    INetworkInterface.Initialize(NetworkSettings)

    Listen()

    Declaration
    public int Listen()
    Returns
    Type Description
    Int32
    Implements
    INetworkInterface.Listen()

    ScheduleReceive(NetworkPacketReceiver, JobHandle)

    Declaration
    public JobHandle ScheduleReceive(NetworkPacketReceiver receiver, JobHandle dep)
    Parameters
    Type Name Description
    NetworkPacketReceiver receiver
    JobHandle dep
    Returns
    Type Description
    JobHandle
    Implements
    INetworkInterface.ScheduleReceive(NetworkPacketReceiver, JobHandle)

    ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle)

    Declaration
    public JobHandle ScheduleSend(NativeQueue<QueuedSendMessage> sendQueue, JobHandle dep)
    Parameters
    Type Name Description
    NativeQueue<QueuedSendMessage> sendQueue
    JobHandle dep
    Returns
    Type Description
    JobHandle
    Implements
    INetworkInterface.ScheduleSend(NativeQueue<QueuedSendMessage>, JobHandle)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023