Skip to content

QuantumGate::Peer::GetUsingGlobalSharedSecret

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

Checks whether or not a Global Shared Secret is used for the connection to the peer.

Signature

Result<bool> GetUsingGlobalSharedSecret() const noexcept;

Return values

Returns a QuantumGate::Result containing, upon successful completion, a bool value indicating whether the connection to the peer is using a Global Shared Secret (true) or not (false).

The QuantumGate::Result object will equal one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::PeerNotReady The operation failed because the peer wasn't ready. The connection to the peer may still be in the process of being established or may have been disconnected.
Clone this wiki locally