docs.unity3d.com
    Show / Hide Table of Contents

    Struct NetworkPacketReceiver

    Obsolete. Part of the old INetworkInterface API.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    Syntax
    [Obsolete("Use ReceiveJobArguments.ReceiveQueue instead", true)]
    public struct NetworkPacketReceiver

    Properties

    LastUpdateTime

    Declaration
    public readonly long LastUpdateTime { get; }
    Property Value
    Type Description
    Int64

    ReceiveErrorCode

    Declaration
    public readonly int ReceiveErrorCode { get; }
    Property Value
    Type Description
    Int32

    Methods

    AllocateMemory(ref Int32)

    Declaration
    public IntPtr AllocateMemory(ref int dataLen)
    Parameters
    Type Name Description
    Int32 dataLen
    Returns
    Type Description
    IntPtr

    AppendPacket(IntPtr, ref NetworkEndpoint, Int32, NetworkPacketReceiver.AppendPacketMode)

    Declaration
    public bool AppendPacket(IntPtr data, ref NetworkEndpoint address, int dataLen, NetworkPacketReceiver.AppendPacketMode mode = NetworkPacketReceiver.AppendPacketMode.None)
    Parameters
    Type Name Description
    IntPtr data
    NetworkEndpoint address
    Int32 dataLen
    NetworkPacketReceiver.AppendPacketMode mode
    Returns
    Type Description
    Boolean

    IsAddressUsed(NetworkEndpoint)

    Declaration
    public bool IsAddressUsed(NetworkEndpoint address)
    Parameters
    Type Name Description
    NetworkEndpoint address
    Returns
    Type Description
    Boolean
    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