UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NetworkDelegates.h File Reference

Go to the source code of this file.

Classes

class  FNetworkNotify
 
struct  FEncryptionKeyResponse
 
struct  FNetSyncLoadReport
 
class  FNetDelegates
 

Namespaces

namespace  EAcceptConnection
 

Enumerations

enum  EAcceptConnection::Type { EAcceptConnection::Reject , EAcceptConnection::Accept , EAcceptConnection::Ignore }
 
enum class  EEncryptionResponse : uint8 {
  Failure , Success , InvalidToken , NoKey ,
  SessionIdMismatch , InvalidParams
}
 
enum class  EEncryptionFailureAction : uint8 { Default , RejectConnection , AllowConnection }
 
enum class  ECheatPunishType : uint8 { Unknown , KickClient , KickMatch , PunishInfo }
 
enum class  ENetSyncLoadType : int32 { Unknown , PropertyReference , ActorSpawn }
 

Functions

const TCHAREAcceptConnection::ToString (EAcceptConnection::Type EnumVal)
 
const TCHAR *const LexToString (const EEncryptionResponse Response)
 
const TCHAR *const LexToString (const ECheatPunishType Response)
 
 DECLARE_DELEGATE_OneParam (FOnEncryptionKeyResponse, const FEncryptionKeyResponse &)
 

Enumeration Type Documentation

◆ ECheatPunishType

enum class ECheatPunishType : uint8
strong

Types of punishment to apply to a cheating client

Enumerator
Unknown 
KickClient 

User should be booted from the game client via logout

KickMatch 

User should be booted from the current game session via disconnect

PunishInfo 

User received info about being punished (eg. ban type etc)

◆ EEncryptionFailureAction

Specifies how to handle encryption failures

Enumerator
Default 

Default handling of encryption failures - net.AllowEncryption determines whether to reject or accept, with exceptions for PIE etc.

RejectConnection 

Reject the connection

AllowConnection 

Allow the connection

◆ EEncryptionResponse

enum class EEncryptionResponse : uint8
strong

Types of responses games are meant to return to let the net connection code about the outcome of an encryption key request

Enumerator
Failure 

General failure

Success 

Key success

InvalidToken 

Token given was invalid

NoKey 

No key found

SessionIdMismatch 

Token doesn't match session

InvalidParams 

Invalid parameters passed to callback

◆ ENetSyncLoadType

enum class ENetSyncLoadType : int32
strong

The different ways net sync loads can be triggered

Enumerator
Unknown 
PropertyReference 
ActorSpawn 

Function Documentation

◆ DECLARE_DELEGATE_OneParam()

DECLARE_DELEGATE_OneParam ( FOnEncryptionKeyResponse  ,
const FEncryptionKeyResponse  
)

Delegate called by the game to provide a response to the encryption key request Provides the encryption key if successful, or a failure reason so the network connection may proceed

Parameters
Responsethe response from the game indicating the success or failure of retrieving an encryption key from an encryption token

◆ LexToString() [1/2]

const TCHAR *const LexToString ( const ECheatPunishType  Response)
inline

◆ LexToString() [2/2]

const TCHAR *const LexToString ( const EEncryptionResponse  Response)
inline