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 WrapAndSendPayload
(
const TArray< uint8 > & Payload,
const FSimpleAbstractSocket & Socket
)
This function will create a header for the payload, then send the header and payload over the network
true if successful
Parameter |
Description |
---|---|
Payload |
Bytes to send over the network |
Socket |
Connection to send the header and payload |