docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface INetworkInterface

    Interface for implementing a low-level networking interface see BaselibNetworkInterface as an example

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Networking.Transport
    Assembly: solution.dll
    Syntax
    public interface INetworkInterface : IDisposable

    Properties

    Name Description
    LocalEndPoint

    Gets the value of the local end point

    Methods

    Name Description
    Bind(NetworkInterfaceEndPoint)

    Binds the medium to a specific endpoint.

    CreateInterfaceEndPoint(NetworkEndPoint, out NetworkInterfaceEndPoint)

    Creates the interface end point using the specified address

    CreateSendInterface()

    Creates the send interface

    GetGenericEndPoint(NetworkInterfaceEndPoint)

    Gets the generic end point using the specified endpoint

    Initialize(NetworkSettings)

    Initializes the interfacing passing in optional INetworkParameter

    Listen()

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

    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

    See Also

    IDisposable
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)