#include <relay_service.h>
Public Member Functions | |
| virtual | ~RelayService ()=default |
| virtual bool | connect_via_relay (const PeerId &target)=0 |
| Try to reach target through a node both ends are connected to. | |
| virtual bool | serves (const PeerId &) const |
| Whether peer said it carries circuits for others — a node to try first for anything relayed, a punch's rendezvous included. | |
Definition at line 31 of file relay_service.h.
|
virtualdefault |
|
pure virtual |
Try to reach target through a node both ends are connected to.
Non-blocking; success surfaces as an ordinary peer-connected event, and the resulting peer is ordinary in every way except that its bytes take a detour (PeerInfo::transport is TransportKind::Relay).
Implemented in librats::Relay.
|
inlinevirtual |
Whether peer said it carries circuits for others — a node to try first for anything relayed, a punch's rendezvous included.
Reimplemented in librats::Relay.
Definition at line 47 of file relay_service.h.