Navigation
API > API/Runtime > API/Runtime/NetCore
Net Result Manager
Handles arbitrary net results, which may attempt recovery from errors instead of e.g. immediately closing the NetConnection
| Name | FNetResultManager |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Connection/NetResultManager.h |
| Include Path | #include "Net/Core/Connection/NetResultManager.h" |
Syntax
class FNetResultManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Net/Core/Connection/NetResultManager.h | |||
| Net/Core/Connection/NetResultManager.h | |||
| Net/Core/Connection/NetResultManager.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FUnhandledResultFunc | TUniqueFunction< EHandleNetResult(FNetResult &&InResult)> | Callback for handling results which no FNetResultHandler took ownership of | Net/Core/Connection/NetResultManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OwnedResultHandlers | TArray< TUniquePtr< FNetResultHandler > > | Result handlers passed to and owned by the result manager | Net/Core/Connection/NetResultManager.h | |
| ResultHandlers | TArray< FNetResultHandler *, TInlineAllocator< 8 > > | The list of result handlers, for attempting to handle results with | Net/Core/Connection/NetResultManager.h | |
| UnhandledResultCallback | FUnhandledResultFunc | The callback for handling results which no result handler has dealt with | Net/Core/Connection/NetResultManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddResultHandler
(
TUniquePtr< FNetResultHandler >&& InResultHandler, |
Adds a new result handler to the result manager (owned by the result manager) | Net/Core/Connection/NetResultManager.h | |
void AddResultHandlerPtr
(
FNetResultHandler* InResultHandler, |
Adds a new result handler pointer to the result manager (not owned by the result manager) | Net/Core/Connection/NetResultManager.h | |
EHandleNetResult HandleNetResult
(
FNetResult&& InResult |
Takes a net result and passes it around to the result handlers and callbacks until it is handled, or returns 'EHandleNetResult::NotHandled'. | Net/Core/Connection/NetResultManager.h | |
void SetUnhandledResultCallback
(
FUnhandledResultFunc InCallback |
Sets a callback for handling net results which no result handlers have dealt with | Net/Core/Connection/NetResultManager.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetResultManager & operator=
(
const FNetResultManager& |
Net/Core/Connection/NetResultManager.h | ||
| Net/Core/Connection/NetResultManager.h |