docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PopEventForConnection

    PopEventForConnection(NetworkConnection, out DataStreamReader)

    Pops events for a connection using the specified connection id

    Declaration
    public NetworkEvent.Type PopEventForConnection(NetworkConnection connectionId, out DataStreamReader reader)
    Parameters
    Type Name Description
    NetworkConnection connectionId

    The connection id

    DataStreamReader reader

    Stream reader for the event's data.

    Returns
    Type Description
    NetworkEvent.Type

    The network event type

    PopEventForConnection(NetworkConnection, out DataStreamReader, out NetworkPipeline)

    Pops events for a connection using the specified connection id

    Declaration
    public NetworkEvent.Type PopEventForConnection(NetworkConnection connectionId, out DataStreamReader reader, out NetworkPipeline pipeline)
    Parameters
    Type Name Description
    NetworkConnection connectionId

    The connection id

    DataStreamReader reader

    Stream reader for the event's data.

    NetworkPipeline pipeline

    Pipeline on which the data event was received.

    Returns
    Type Description
    NetworkEvent.Type

    The type

    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)