FSocket::RecvMulti

Reads multiple packets from the socket at once, gathering the source address and other optional platform specific data.

Choose your operating system:

Windows

macOS

Linux

References

Module

Sockets

Header

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

Include

#include "Sockets.h"

Source

/Engine/Source/Runtime/Sockets/Private/Sockets.cpp

Syntax

virtual bool RecvMulti
(
    FRecvMulti & MultiData,
    ESocketReceiveFlags::Type Flags
)

Remarks

Reads multiple packets from the socket at once, gathering the source address and other optional platform specific data. Use ISocketSubsystem::IsSocketRecvMultiSupported to check if the current socket platform supports this.

For optimal performance, one FRecvMulti instance should be used, for the lifetime of the socket.

Returns

Whether or not data was successfully received

Parameters

Parameter

Description

MultiData

The FRecvMulti instance that receives packet data and holds platform specific buffers for receiving data.

Flags

The receive flags.