Back to Site
Loading...
Searching...
No Matches
peer.h File Reference

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>
Include dependency graph for peer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  librats::Peer
 

Namespaces

namespace  librats
 

Detailed Description

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.