Navigation
API > API/Runtime > API/Runtime/NetCommon
Represents a view of a received packet, which may be modified to update Data it points to and Data size, as a packet is processed. Should only be stored as a local variable within functions that handle received packets.
| Name | FReceivedPacketView |
| Type | struct |
| Header File | /Engine/Source/Runtime/Net/Common/Public/Net/Common/Packets/PacketView.h |
| Include Path | #include "Net/Common/Packets/PacketView.h" |
Syntax
struct FReceivedPacketView
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Address | TSharedPtr< const FInternetAddr > | Receive address for the packet | Net/Common/Packets/PacketView.h | |
| Data | TArrayView< const uint8 > & | Net/Common/Packets/PacketView.h | ||
| DataView | FPacketDataView | View of packet data - can reassign to point elsewhere, but don't use to modify packet data | Net/Common/Packets/PacketView.h | |
| Error | ESocketErrors | Error if receiving a packet failed | Net/Common/Packets/PacketView.h | |
| Traits | FInPacketTraits | Metadata and flags for the received packet, indicating what it contains and how to process it | Net/Common/Packets/PacketView.h |