FNFSMessageHeader::WrapAndSendPayload

This function will create a header for the payload, then send the header and payload over 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 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

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