librats
Features
Quick Start
API Reference
GitHub
Back to Site
Loading...
Searching...
No Matches
relay_service.h
Go to the documentation of this file.
1
#pragma once
2
26
#include "librats/util/rats_export.h"
27
#include "
librats/peer/peer_id.h
"
28
29
namespace
librats
{
30
31
struct
RATS_API
RelayService
{
32
virtual
~RelayService
() =
default
;
33
43
virtual
bool
connect_via_relay
(
const
PeerId
& target) = 0;
44
};
45
46
}
// namespace librats
librats::PeerId
Definition
peer_id.h:27
librats
Definition
node.h:73
peer_id.h
Self-certifying peer identity.
librats::RelayService
Definition
relay_service.h:31
librats::RelayService::~RelayService
virtual ~RelayService()=default
librats::RelayService::connect_via_relay
virtual bool connect_via_relay(const PeerId &target)=0
Try to reach target through a node both ends are connected to.