docs.unity3d.com
Search Results for

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    Syntax
    [Obsolete("Use ReceiveJobArguments.ReceiveQueue instead", true)]
    public struct NetworkPacketReceiver

    Properties

    LastUpdateTime

    Obsolete. Part of the old INetworkInterface API.

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

    ReceiveErrorCode

    Obsolete. Part of the old INetworkInterface API.

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

    Methods

    AllocateMemory(ref int)

    Obsolete. Part of the old INetworkInterface API.

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

    Amount of memory to allocate.

    Returns
    Type Description
    IntPtr

    Pointer to allocated memory.

    AppendPacket(IntPtr, ref NetworkEndpoint, int, AppendPacketMode)

    Obsolete. Part of the old INetworkInterface API.

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

    Pointer to the packet's data.

    NetworkEndpoint address

    Address to send the packet to.

    int dataLen

    Length of the packet's data.

    NetworkPacketReceiver.AppendPacketMode mode

    Mode in which to append the packet.

    Returns
    Type Description
    bool

    If packet was appended successfully.

    IsAddressUsed(NetworkEndpoint)

    Obsolete. Part of the old INetworkInterface API.

    Declaration
    public bool IsAddressUsed(NetworkEndpoint address)
    Parameters
    Type Name Description
    NetworkEndpoint address

    Address to check.

    Returns
    Type Description
    bool

    If the address is used.

    In This Article
    Back to top
    Copyright © 2025 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)