librats
Features
Quick Start
API Reference
GitHub
Back to Site
Loading...
Searching...
No Matches
hole_punch_service.h
Go to the documentation of this file.
1
#pragma once
2
23
#include "librats/util/rats_export.h"
24
#include "
librats/peer/peer_id.h
"
25
26
namespace
librats
{
27
28
struct
RATS_API
HolePunchService
{
29
virtual
~HolePunchService
() =
default
;
30
35
virtual
bool
punch
(
const
PeerId
& target) = 0;
36
};
37
38
}
// namespace librats
librats::PeerId
Definition
peer_id.h:27
librats
Definition
node.h:73
peer_id.h
Self-certifying peer identity.
librats::HolePunchService
Definition
hole_punch_service.h:28
librats::HolePunchService::~HolePunchService
virtual ~HolePunchService()=default
librats::HolePunchService::punch
virtual bool punch(const PeerId &target)=0
Try to reach target by punching.