Back to Site
Loading...
Searching...
No Matches
librats::HolePunchService Struct Referenceabstract

#include <hole_punch_service.h>

Inheritance diagram for librats::HolePunchService:
[legend]

Public Member Functions

virtual ~HolePunchService ()=default
 
virtual bool punch (const PeerId &target)=0
 Try to reach target by punching.
 

Detailed Description

Definition at line 28 of file hole_punch_service.h.

Constructor & Destructor Documentation

◆ ~HolePunchService()

virtual librats::HolePunchService::~HolePunchService ( )
virtualdefault

Member Function Documentation

◆ punch()

virtual bool librats::HolePunchService::punch ( const PeerId target)
pure virtual

Try to reach target by punching.

Non-blocking; a successful punch surfaces as an ordinary peer-connected event.

Returns
whether a rendezvous actually started — false is routine (already connected, already punching, in cooldown, or nothing punchable to advertise) and needs no handling by the caller.

Implemented in librats::HolePunch.


The documentation for this struct was generated from the following file: