Struct NetworkPacketReceiver
Obsolete. Part of the old INetworkInterface
API.
Assembly: Unity.Networking.Transport.dll
Syntax
[Obsolete("Use ReceiveJobArguments.ReceiveQueue instead", true)]
public struct NetworkPacketReceiver
Properties
LastUpdateTime
Declaration
public long LastUpdateTime { get; }
Property Value
ReceiveErrorCode
Declaration
public int ReceiveErrorCode { get; }
Property Value
Methods
AllocateMemory(ref int)
Declaration
public IntPtr AllocateMemory(ref int dataLen)
Parameters
Type |
Name |
Description |
int |
dataLen |
|
Returns
AppendPacket(IntPtr, ref NetworkEndpoint, int, AppendPacketMode)
Declaration
public bool AppendPacket(IntPtr data, ref NetworkEndpoint address, int dataLen, NetworkPacketReceiver.AppendPacketMode mode = AppendPacketMode.None)
Parameters
Returns
IsAddressUsed(NetworkEndpoint)
Declaration
public bool IsAddressUsed(NetworkEndpoint address)
Parameters
Returns