#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. | |
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.