FNFSMessageHeader::WrapAndSendPayload

This function will create a header for the payload, then send the header and payload over the network

Choose your operating system:

Windows

macOS

Linux

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/NetworkMessage.h

Include

#include "NetworkMessage.h"

Source

/Engine/Source/Runtime/Sockets/Private/NetworkMessage.cpp

Syntax

static bool WrapAndSendPayload
(
    const TArray< uint8 > & Payload,
    const FSimpleAbstractSocket & Socket
)

Remarks

This function will create a header for the payload, then send the header and payload over the network

Returns

true if successful

Parameters

Parameter

Description

Payload

Bytes to send over the network

Socket

Connection to send the header and payload