{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct NetworkStreamConnection | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkStreamConnection

    A connection is represented by an entity having a NetworkStreamConnection. The component hold a reference to the underlying transport NetworkConnection and the NetworkDriver that created it. All connections share a common set of components:

    - NetworkId

    - IncomingRpcDataStreamBuffer

    - OutgoingCommandDataStreamBuffer

    - OutgoingRpcDataStreamBuffer

    - PrespawnSectionAck

    - CommandTarget

    Client connections also have a IncomingSnapshotDataStreamBuffer to handle server ghost snapshots.
    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    public struct NetworkStreamConnection : IComponentData, IQueryTypeParameter

    Fields

    Name Description
    DriverId

    The driver identifier that create the connection. Can be used to retrieve the NetworkDriver or the NetworkDriverStore.NetworkDriverInstance from the NetworkDriverStore.

    ProtocolVersionReceived

    Flag used to mark if the connection has exchanged the protocol version. 1 indicates that the remote version protocol has been received.

    Value

    The underlyng transport NetworkConnection

    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)