FReceivedPacketView

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.

Windows
MacOS
Linux

References

Module

NetCommon

Header

/Engine/Source/Runtime/Net/Common/Public/Net/Common/Packets/PacketView.h

Include

#include "Net/Common/Packets/PacketView.h"

Syntax

struct FReceivedPacketView

Remarks

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.

Variables

Name Description

Public variable

TSharedPtr< con...

 

Address

Receive address for the packet

Public variable

FPacketDataView

 

DataView

View of packet data - can reassign to point elsewhere, but don't use to modify packet data

Public variable

ESocketErrors

 

Error

Error if receiving a packet failed

Public variable

FInPacketTraits

 

Traits

Metadata and flags for the received packet, indicating what it contains and how to process it

Deprecated Variables

Name Description

Public variable

TArrayView< con...

 

Data

Data is deprecated, use DataView instead

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss