ConnectionResult struct
Describes a connection result of INetworkHandler::
Returned by a connection handler to accept or reject an incoming peer. It wraps either a success state or a Reason explaining the rejection, and converts implicitly to bool for convenience.
Constructors, destructors, conversion operators
- ConnectionResult(Reason reason)
- Creates an instance from a failure reason.
- ConnectionResult(bool success)
- Creates an instance from a success state.
- operator bool() const explicit
Public functions
- auto IsSuccessful() const -> bool
- Returns
trueif the connection was successful.
Public variables
- Reason FailureReason
- Failure reason if the connection was not successful.