Struct NetworkPacketReceiver
Obsolete. Part of the old INetworkInterface API.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
[Obsolete("Use ReceiveJobArguments.ReceiveQueue instead", true)]
public struct NetworkPacketReceiverProperties
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. |