Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/FSocket
Description
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.
| Name | RecvMulti |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/Sockets.h |
| Include Path | #include "Sockets.h" |
| Source | /Engine/Source/Runtime/Sockets/Private/Sockets.cpp |
virtual bool RecvMulti
(
FRecvMulti & MultiData,
ESocketReceiveFlags::Type Flags
)
Whether or not data was successfully received
Parameters
| Name | Remarks |
|---|---|
| MultiData | The FRecvMulti instance that receives packet data and holds platform specific buffers for receiving data. |
| Flags | The receive flags. |