Skip to content

QuantumGate::Peer::Details

Karel Donk edited this page Aug 10, 2020 · 2 revisions

QuantumGate::Peer::Details is a struct that contains details about a peer.

Definition

struct Details
{
    PeerUUID PeerUUID;
    PeerConnectionType ConnectionType{ PeerConnectionType::Unknown };
    ConnectionAlgorithms ConnectionAlgorithms;
    bool IsAuthenticated{ false };
    bool IsRelayed{ false };
    bool IsUsingGlobalSharedSecret{ false };
    IPEndpoint LocalIPEndpoint;
    IPEndpoint PeerIPEndpoint;
    std::pair<UInt8, UInt8> PeerProtocolVersion{ 0u, 0u };
    UInt64 LocalSessionID{ 0 };
    UInt64 PeerSessionID{ 0 };
    std::chrono::milliseconds ConnectedTime{ 0 };
    Size BytesReceived{ 0 };
    Size BytesSent{ 0 };
    Size ExtendersBytesReceived{ 0 };
    Size ExtendersBytesSent{ 0 };
};

Member variables

Name Description
PeerUUID The Universally Unique Identifier of the peer on the QuantumGate network.
ConnectionType The connection type. See QuantumGate Types for more information.
ConnectionAlgorithms The algorithms used during the connection to the peer. See QuantumGate::Peer::ConnectionAlgorithms for more information.
IsAuthenticated Indicates whether the peer is authenticated.
IsRelayed Indicates whether the connection to the peer is relayed.
IsUsingGlobalSharedSecret Indicates whether the connection to the peer is using a global shared secret.
LocalIPEndpoint The local endpoint of the peer.
PeerIPEndpoint The remote endpoint of the peer.
PeerProtocolVersion The QuantumGate protocol version of the peer.
LocalSessionID The local session ID. This is a cryptographic ID which is unique for every connection.
PeerSessionID The peer session ID. This is a cryptographic ID which is unique for every connection.
ConnectedTime The number of milliseconds that the peer has been connected.
BytesReceived The number of bytes received from the peer.
BytesSent The number of bytes sent to the peer.
ExtendersBytesReceived The number of bytes of extender data received from the peer.
ExtendersBytesSent The number of bytes of extender data sent to the peer.
Clone this wiki locally