FNFSMessageHeader::ReceivePayload

This function will receive a header, and then the payload array from 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 ReceivePayload
(
    FArrayReader & OutPayload,
    const FSimpleAbstractSocket & Socket
)

Remarks

This function will receive a header, and then the payload array from the network

Returns

true if successful

Parameters

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