A lightweight handle to a connected peer. More...
#include "core/bytes.h"#include "peer/peer_id.h"#include "peer/peer_info.h"#include "peer/peer_table.h"#include <optional>#include <string_view>Go to the source code of this file.
Classes | |
| class | librats::Peer |
Namespaces | |
| namespace | librats |
A lightweight handle to a connected peer.
Peer is a value passed to callbacks. It carries the peer's id and its route (which reactor + connection), so send()/disconnect() reach the right reactor directly — no PeerTable lookup on the reply path. info() does consult the directory, on demand, for metadata.
Definition in file peer.h.