Skip to content

QuantumGate::Peer::GetPeerProtocolVersion

Karel Donk edited this page Dec 13, 2019 · 1 revision

Gets the QuantumGate protocol version of the peer.

Signature

Result<std::pair<UInt8, UInt8>> GetPeerProtocolVersion() const noexcept;

Return values

Returns a QuantumGate::Result containing, upon successful completion, the protocol version used by the peer as a std::pair of UInt elements with:

  • Major version number (first element)
  • Minor version number (second element)

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