FSocket::RecvMulti

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

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. NOTE: 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.

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