FNFSMessageHeader::SendPayloadAndReceiveResponse

This function will send a payload data (with header) and wait for a response, serializing the response to a [FBufferArchive](API\Runtime\Core\Serialization\FBufferArchive)

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 SendPayloadAndReceiveResponse
(
    const TArray< uint8 > & Payload,
    class FArrayReader & Response,
    const FSimpleAbstractSocket & Socket
)

Remarks

This function will send a payload data (with header) and wait for a response, serializing the response to a FBufferArchive

Returns

true if successful

Parameters

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

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