FNetControlMessage

Network control channel message types

Windows
MacOS
Linux

Warnings

  • modifying control channel messages breaks network compatibility (update GEngineMinNetVersion)

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Net/DataChannel.h

Include

#include "Net/DataChannel.h"

Syntax

template<uint8 MessageType>
class FNetControlMessage

Remarks

Network control channel message types

to add a new message type, you need to:

  • add a DEFINE_CONTROL_CHANNEL_MESSAGE for the message type with the appropriate parameters to this file

  • add IMPLEMENT_CONTROL_CHANNEL_MESSAGE for the message type to DataChannel.cpp

  • implement the fallback behavior (eat an unparsed message) to UControlChannel::ReceivedBunch()

: modifying control channel messages breaks network compatibility (update GEngineMinNetVersion)

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