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

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

    ReceiveErrorCode

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

    Methods

    AllocateMemory(ref int)

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

    AppendPacket(IntPtr, ref NetworkEndpoint, int, AppendPacketMode)

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

    IsAddressUsed(NetworkEndpoint)

    Declaration
    public bool IsAddressUsed(NetworkEndpoint address)
    Parameters
    Type Name Description
    NetworkEndpoint address
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2024 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)