![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetResultManager.h>
Public Types | |
| using | FUnhandledResultFunc = TUniqueFunction< EHandleNetResult(FNetResult &&InResult)> |
Net Result Manager
Handles arbitrary net results, which may attempt recovery from errors instead of e.g. immediately closing the NetConnection
| using UE::Net::FNetResultManager::FUnhandledResultFunc = TUniqueFunction<EHandleNetResult(FNetResult&& InResult)> |
Callback for handling results which no FNetResultHandler took ownership of
| InResult | Specifies the result |
|
default |
|
delete |
|
delete |
| void UE::Net::FNetResultManager::AddResultHandler | ( | TUniquePtr< FNetResultHandler > && | InResultHandler, |
| EAddResultHandlerPos | Position = EAddResultHandlerPos::Last |
||
| ) |
Adds a new result handler to the result manager (owned by the result manager)
| InResultHandler | The new result handler to be added |
| Position | The position/precedence in the result handler list, to place the new handler |
| void UE::Net::FNetResultManager::AddResultHandlerPtr | ( | FNetResultHandler * | InResultHandler, |
| EAddResultHandlerPos | Position = EAddResultHandlerPos::Last |
||
| ) |
Adds a new result handler pointer to the result manager (not owned by the result manager)
| InResultHandler | The new result handler to be added |
| Position | The position/precedence in the result handler list, to place the new handler |
| EHandleNetResult UE::Net::FNetResultManager::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'.
NOTE: InResult is moved when result is Closed/Handled, and not moved when result is NotHandled.
| InResult | Specifies the result |
|
delete |
|
delete |
| void UE::Net::FNetResultManager::SetUnhandledResultCallback | ( | FUnhandledResultFunc | InCallback | ) |
Sets a callback for handling net results which no result handlers have dealt with
| InCallback | The callback to use for unhandled results |