Navigation
Unreal Engine C++ API Reference > Runtime > NetCore > Net > Core > Connection
Inheritance Hierarchy
- FNetResult
- TNetResult
References
Module | NetCore |
Header | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Connection/NetResult.h |
Include | #include "Net/Core/Connection/NetResult.h" |
Syntax
template<typename ResultEnum>
struct TNetResult : public UE::Net::FNetResult
Remarks
Generic result struct for Network Results (e.g. Close and failures) - partially adapted from FOnlineError/FResult. ResultEnum must have LexToString implemented, and DECLARE_NETRESULT_ENUM(ResultEnum) must be declared for each enum type.
NOTE: Support for using results to modify control flow, depends on how they are implemented in the netcode.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TNetResult
(
ResultEnum InResult |
Default constructor | |
![]() |
TNetResult
(
ResultEnum InResult, |
Main constructor, specifying full result (usually error) |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FString & | ||
![]() ![]() |
ResultEnum | GetResult () |
|
![]() ![]() |
bool | HasChainResult
(
const TNetResult& A |
Determines whether the specified result is contained within this result chain NOTE: Also checks against the error code |
![]() ![]() |
FString | ToString
(
ENetResultString ConversionType |
Convert result to human readable string (ExportText style) |
![]() ![]() |
bool | Accessors |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
ResultEnum A |
|
![]() ![]() |
bool | operator==
(
ResultEnum A |
Operators |
Typedefs
Name | Description |
---|---|
UnderlyingResultType |