FProcessEventHook

Class for encapsulating ProcessEvent and general RPC hooks, implemented globally for each [UWorld](API\Runtime\Engine\Engine\UWorld) NOTE: Presently, all RPC hooks tied to [UWorld](API\Runtime\Engine\Engine\UWorld)'s only hook client RPC's - global RPC hooks, hook both client and server RPC's

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/Net/NUTUtilNet.h

Include

#include "Net/NUTUtilNet.h"

Syntax

class FProcessEventHook

Remarks

Class for encapsulating ProcessEvent and general RPC hooks, implemented globally for each UWorld NOTE: Presently, all RPC hooks tied to UWorld's only hook client RPC's - global RPC hooks, hook both client and server RPC's

Constructors

Name Description

Public function

FProcessEventHook()

Default constructor

Functions

Name Description

Public function

void

 

AddEventHook

(
    UWorld* InWorld,
    FOnProcessNetEvent InHook
)

Adds a non-RPC hook for the specified UWorld.

Public function

FDelegateHan...

 

AddGlobalEventHook

(
    FOnProcessNetEvent InHook
)

Adds a global non-RPC hook.

Public function

FDelegateHan...

 

AddGlobalRPCHook

(
    FOnProcessNetEvent InHook
)

Adds a global RPC hook.

Public function

void

 

AddRPCHook

(
    UWorld* InWorld,
    FOnProcessNetEvent InHook
)

Adds an RPC hook for the specified UWorld.

Public function Static

FProcessEven...

 

Get()

Get a reference to the net event hook singular

Public function

void

 

RemoveEventHook

(
    UWorld* InWorld
)

Removes the hook for the specified UWorld.

Public function

void

 

RemoveGlobalEventHook

(
    FDelegateHandle InHandle
)

Removes the specified global non-RPC hook

Public function

void

 

RemoveGlobalRPCHook

(
    FDelegateHandle InHandle
)

Removes the specified global RPC hook

Public function

void

 

RemoveRPCHook

(
    UWorld* InWorld
)

Removes the RPC hook for the specified UWorld.

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