Skip to content

QuantumGate::Access::Manager::GetPeerAllowed

Karel Donk edited this page Aug 16, 2020 · 1 revision

Returns whether or not a peer is allowed to connect to the instance.

Signature

Result<bool> GetPeerAllowed(const PeerUUID& puuid) const noexcept;

Parameters

Name Description
puuid The Universally Unique Identifier of the peer. See QuantumGate::UUID for more details.

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::Failed The operation failed.

Upon successful completion the result contains a bool value equal to true indicating that the peer is allowed, or false indicating that the peer is not allowed.

Clone this wiki locally