Skip to content

QuantumGate::Local::DisableRelays

Karel Donk edited this page Jun 10, 2018 · 2 revisions

Disables relayed connections for the instance. When relayed connections are disabled the instance can't connect to other peers via relays, and can't participate as a relay for other peers.

If there are active relayed connections those connections get closed when disabling relays.

Signature

Result<> DisableRelays() noexcept;

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::FailedNotRunning The operation failed because the QuantumGate instance wasn't running.
Clone this wiki locally