Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/NetworkMessage.h |
Include |
#include "NetworkMessage.h" |
Source |
/Engine/Source/Runtime/Sockets/Private/NetworkMessage.cpp |
static bool ReceivePayload
(
FArrayReader & OutPayload,
const FSimpleAbstractSocket & Socket
)
This function will receive a header, and then the payload array from the network
true if successful
Parameter |
Description |
---|---|
OutPayload |
The archive to read into (the response is APPENDed to any data in the archive already, and the archive will be seeked to the start of new data) |
Socket |
The socket to read from |