Struct NetworkPacketReceiver
The NetworkPacketReceiver is an interface for handling received packets, needed by the INetwork
- Your API requires a pointer to memory that you own. Then you should use Allocate
Memory(ref int) , write to the memory and then AppendPacket(Int with NoPtr, ref Network Interface End Point, int, Append Packet Mode) Copy . You don't need to deallocate the memoryNeeded - Your API gives you a pointer that you don't own. In this case you should use Append
Packet(Int with None (default)Ptr, ref Network Interface End Point, int, Append Packet Mode)
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: solution.dll
Syntax
public struct NetworkPacketReceiver
Properties
Name | Description |
---|---|
Last |
Gets the value of the last update time. |
Receive |
Sets the value of the receive error code |
Methods
Name | Description |
---|---|
Allocate |
Calls NetworkDriver's Allocate |
Append |
When data is received this function should be called to pass it inside Network |
Is |
Check if an address is currently associated with a valid connection. This is mostly useful to keep interface internal lists of connections in sync with the correct state. |