Struct LocalDriverHelper | Unity Transport | 0.3.1-preview.4
docs.unity3d.com
    Show / Hide Table of Contents

    Struct LocalDriverHelper

    Namespace: Unity.Networking.Transport.Tests
    Syntax
    public struct LocalDriverHelper : IDisposable

    Constructors

    LocalDriverHelper(NetworkEndPoint, INetworkParameter[])

    Declaration
    public LocalDriverHelper(NetworkEndPoint endpoint, params INetworkParameter[] networkParams)
    Parameters
    Type Name Description
    NetworkEndPoint endpoint
    INetworkParameter[] networkParams

    Fields

    ClientConnections

    Declaration
    public List<NetworkConnection> ClientConnections
    Field Value
    Type Description
    List<NetworkConnection>

    m_LocalDriver

    Declaration
    public NetworkDriver m_LocalDriver
    Field Value
    Type Description
    NetworkDriver

    Properties

    Connection

    Declaration
    public NetworkConnection Connection { get; }
    Property Value
    Type Description
    NetworkConnection

    EndPoint

    Declaration
    public NetworkEndPoint EndPoint { get; }
    Property Value
    Type Description
    NetworkEndPoint

    Methods

    Accept()

    Declaration
    public NetworkConnection Accept()
    Returns
    Type Description
    NetworkConnection

    Assert_GotConnectionRequest(NetworkEndPoint, Boolean)

    Declaration
    public void Assert_GotConnectionRequest(NetworkEndPoint from, bool accept = false)
    Parameters
    Type Name Description
    NetworkEndPoint from
    Boolean accept

    Assert_GotDataRequest(NetworkEndPoint, Byte[])

    Declaration
    public void Assert_GotDataRequest(NetworkEndPoint from, byte[] dataToCompare)
    Parameters
    Type Name Description
    NetworkEndPoint from
    Byte[] dataToCompare

    Assert_GotDisconnectionRequest(NetworkEndPoint)

    Declaration
    public void Assert_GotDisconnectionRequest(NetworkEndPoint from)
    Parameters
    Type Name Description
    NetworkEndPoint from

    Assert_PopEvent(out NetworkConnection, NetworkEvent.Type)

    Declaration
    public void Assert_PopEvent(out NetworkConnection connection, NetworkEvent.Type evnt)
    Parameters
    Type Name Description
    NetworkConnection connection
    NetworkEvent.Type evnt

    Assert_PopEventForConnection(NetworkConnection, NetworkEvent.Type)

    Declaration
    public void Assert_PopEventForConnection(NetworkConnection connection, NetworkEvent.Type evnt)
    Parameters
    Type Name Description
    NetworkConnection connection
    NetworkEvent.Type evnt

    Connect(NetworkEndPoint)

    Declaration
    public void Connect(NetworkEndPoint endpoint)
    Parameters
    Type Name Description
    NetworkEndPoint endpoint

    Dispose()

    Declaration
    public void Dispose()

    Host()

    Declaration
    public void Host()

    Update()

    Declaration
    public void Update()
    Back to top
    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