Struct NetworkEventQueue | Unity Transport | 0.5.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Struct NetworkEventQueue

    Namespace: Unity.Networking.Transport
    Syntax
    public struct NetworkEventQueue : IDisposable

    Constructors

    NetworkEventQueue(Int32)

    Declaration
    public NetworkEventQueue(int queueSizePerConnection)
    Parameters
    Type Name Description
    Int32 queueSizePerConnection

    Methods

    Dispose()

    Declaration
    public void Dispose()

    GetCountForConnection(Int32)

    Declaration
    public int GetCountForConnection(int connectionId)
    Parameters
    Type Name Description
    Int32 connectionId
    Returns
    Type Description
    Int32

    PopEvent(out Int32, out Int32, out Int32)

    Declaration
    public NetworkEvent.Type PopEvent(out int id, out int offset, out int size)
    Parameters
    Type Name Description
    Int32 id
    Int32 offset
    Int32 size
    Returns
    Type Description
    NetworkEvent.Type

    PopEventForConnection(Int32, out Int32, out Int32)

    Declaration
    public NetworkEvent.Type PopEventForConnection(int connectionId, out int offset, out int size)
    Parameters
    Type Name Description
    Int32 connectionId
    Int32 offset
    Int32 size
    Returns
    Type Description
    NetworkEvent.Type

    PushEvent(NetworkEvent)

    Declaration
    public void PushEvent(NetworkEvent ev)
    Parameters
    Type Name Description
    NetworkEvent ev

    ToConcurrent()

    Declaration
    public NetworkEventQueue.Concurrent ToConcurrent()
    Returns
    Type Description
    NetworkEventQueue.Concurrent
    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