Jazz2::Multiplayer::Peer struct

Remote peer as opaque handle.

Constructors, destructors, conversion operators

Peer(std::nullptr_t = nullptr)
operator bool() const explicit

Public functions

auto operator==(const Peer& other) const -> bool
auto operator!=(const Peer& other) const -> bool
auto IsValid() const -> bool
Returns true if the peer is valid.
auto GetId() const -> std::uint64_t
Returns a unique numeric identifier for logging and serialization.
auto GetRoundTripTime() const -> std::uint32_t
Returns mean round trip time to the peer in milliseconds (0 for WebSocket peers).