FNetworkNotifyHook

A delegate network notify class, to allow for easy inline-hooking.

Windows
MacOS
Linux

Inheritance Hierarchy

FNetworkNotify

FNetworkNotifyHook

References

Module

NetcodeUnitTest

Header

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

Include

#include "Net/NUTUtilNet.h"

Syntax

class FNetworkNotifyHook : public FNetworkNotify

Remarks

A delegate network notify class, to allow for easy inline-hooking.

This will memory leak upon level change and re-hooking (if used as a hook), because there is no consistent way to handle deleting it.

Variables

Constructors

Name Description

Public function

FNetworkNotifyHook()

Base constructor

Public function

FNetworkNotifyHook

(
    FNetworkNotify* InHookNotify
)

Constructor which hooks an existing network notify

Destructors

Name Description

Public function Virtual

~FNetworkNotifyHook()

Virtual destructor

Overridden from FNetworkNotify

Name Description

Protected function Virtual

void

 

NotifyAcceptedConnection

(
    UNetConnection* Connection
)

Notification that a new connection has been created/established as a result of a remote request, previously approved by NotifyAcceptingConnection

Protected function Virtual

bool

 

NotifyAcceptingChannel

(
    UChannel* Channel
)

Notification that a new channel is being created/opened as a result of a remote request (Actor creation, etc)

Protected function Virtual

EAcceptConne...

 

NotifyAcceptingConnection()

Old/original notifications

Protected function Virtual

void

 

NotifyControlMessage

(
    UNetConnection* Connection,
    uint8 MessageType,
    FInBunch& Bunch
)

Handler for messages sent through a remote connection's control channel not required to handle the message, but if it reads any data from Bunch, it MUST read the ENTIRE data stream for that message (i.e. use FNetControlMessage::Receive())

Typedefs

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