13#include "util/rats_export.h"
14#include "core/bytes.h"
17#include "peer/peer_table.h"
28 const PeerId&
id() const noexcept {
return id_; }
31 void send(std::string_view channel, ByteView payload)
const;
37 std::optional<PeerInfo>
info()
const;
42 : id_(
std::move(id)), route_(route), node_(&node) {}
std::optional< PeerInfo > info() const
Look up the peer's metadata in the directory (nullopt if gone).
const PeerId & id() const noexcept
void send(std::string_view channel, ByteView payload) const
Send bytes on a named application channel.
void disconnect() const
Request this peer be disconnected.
Self-certifying peer identity.
Addressing/metadata for a peer — the shareable, persistable identity.