FNetworkVersion

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/NetworkVersion.h

Include

#include "Misc/NetworkVersion.h"

Syntax

struct FNetworkVersion

Functions

Name Description

Public function Static

uint32

 

GetEngineCompatibleNetworkProtocolVersion()

Public function Static

uint32

 

GetEngineNetworkProtocolVersion()

Public function Static

uint32

 

GetGameCompatibleNetworkProtocolVersion()

Public function Static

uint32

 

GetGameNetworkProtocolVersion()

Public function Static

uint32

 

GetLocalNetworkVersion

(
    bool AllowOverrideDelegate
)

Generates a version number, that by default, is based on a checksum of the engine version + project name + project version string Game/project code can completely override what this value returns through the GetLocalNetworkVersionOverride delegate If called with AllowOverrideDelegate=false, we will not call the game project override.

Public function Static

uint32

 

GetNetworkCompatibleChangelist()

Public function Static

const FStrin...

 

GetProjectVersion()

Returns the project version used by networking

Protected function Static

FString &

 

GetProjectVersion_Internal()

Used to allow BP only projects to override network versions

Public function Static

uint32

 

GetReplayCompatibleChangelist()

Public function Static

FNetworkRepl...

 

GetReplayVersion()

Generates a special struct that contains information to send to replay server

Public function Static

void

 

InvalidateNetworkChecksum()

Invalidates any cached network checksum and forces it to be recalculated on next request

Public function Static

bool

 

IsNetworkCompatible

(
    const uint32 LocalNetworkVersion,
    const uint32 RemoteNetworkVersion
)

Determine if a connection is compatible with this instance

Public function Static

void

 

SetGameCompatibleNetworkProtocolVersion

(
    uint32 GameCompatibleNetworkProtoco...
)

Sets the game compatible network protocol version used for networking and invalidate cached values

Public function Static

void

 

SetGameNetworkProtocolVersion

(
    uint32 GameNetworkProtocolVersion
)

Sets the game network protocol version used for networking and invalidate cached values

Public function Static

void

 

SetProjectVersion

(
    const TCHAR* InVersion
)

Sets the project version used for networking.

Typedefs

Name

Description

FGetLocalNetworkVersionOverride

Called in GetLocalNetworkVersion if bound

FIsNetworkCompatibleOverride

Called in IsNetworkCompatible if bound

Constants

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