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 SendPayloadAndReceiveResponse
(
const TArray< uint8 > & Payload,
class FArrayReader & Response,
const FSimpleAbstractSocket & Socket
)
This function will send a payload data (with header) and wait for a response, serializing the response to a FBufferArchive
true if successful
Parameter |
Description |
---|---|
Payload |
Bytes to send over the network |
Response |
The archive to read the response into |
Socket |
Connection to send the header and payload |