FRecvMulti

Stores the persistent state and packet buffers/data, for receiving packets with [FSocket::RecvMulti](API\Runtime\Sockets\FSocket\RecvMulti).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/SocketTypes.h

Include

#include "SocketTypes.h"

Syntax

struct FRecvMulti :
    public FNoncopyable,
    public FVirtualDestructor

Remarks

Stores the persistent state and packet buffers/data, for receiving packets with FSocket::RecvMulti. To optimize performance, use only once instance of this struct, for the lifetime of the socket.

Variables

Name Description

Public variable

const int32

 

MaxNumPackets

The maximum number of packets this FRecvMulti instance can support

Public variable

const int32

 

MaxPacketSize

The maximum packet size this FRecvMulti instance can support

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Virtual Const

void

 

CountBytes

(
    FArchive& Ar
)

Calculates the total memory consumption of this FRecvMulti instance, including platform-specific data

Public function Const

int32

 

GetNumPackets()

Retrieves the current number of received packets

Public function

void

 

GetPacket

(
    int32 PacketIdx,
    FReceivedPacketView& OutPacket
)

Retrieves the information for the specified packet

Public function Const

bool

 

GetPacketTimestamp

(
    int32 PacketIdx,
    FPacketTimestamp& OutTimestamp
)

Returns the platform specific timestamp for when the specified packet was received by the operating system