docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PopEvent

    PopEvent(NetworkDriver, out DataStreamReader)

    Receive an event for this specific connection. Should be called until it returns Empty, even if the connection is disconnected.

    Declaration
    public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream)
    Parameters
    Type Name Description
    NetworkDriver driver

    Driver to which the connection belongs.

    DataStreamReader stream

    A DataStreamReader, that will only be populated if a Data (or possibly Disconnect) event was received.

    Returns
    Type Description
    NetworkEvent.Type

    The NetworkEvent.Type of the event.

    PopEvent(NetworkDriver, out DataStreamReader, out NetworkPipeline)

    Declaration
    public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream, out NetworkPipeline pipeline)
    Parameters
    Type Name Description
    NetworkDriver driver
    DataStreamReader stream
    NetworkPipeline pipeline
    Returns
    Type Description
    NetworkEvent.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)