FNFSMessageHeader::ReceivePayload

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss