Back to Site
Loading...
Searching...
No Matches
librats::DialService Class Referenceabstract

#include <dial_service.h>

Inheritance diagram for librats::DialService:
[legend]

Public Member Functions

virtual ~DialService ()=default
 
virtual bool dial_direct (const Address &addr, TransportKind kind, const DialProfile &profile)=0
 Start exactly one dial to addr over kind, bypassing the transport race.
 

Detailed Description

Definition at line 41 of file dial_service.h.

Constructor & Destructor Documentation

◆ ~DialService()

virtual librats::DialService::~DialService ( )
virtualdefault

Member Function Documentation

◆ dial_direct()

virtual bool librats::DialService::dial_direct ( const Address addr,
TransportKind  kind,
const DialProfile &  profile 
)
pure virtual

Start exactly one dial to addr over kind, bypassing the transport race.

Non-blocking; the outcome surfaces through the node's ordinary peer-connected event. Returns false when the node cannot carry that transport at all (no datagram socket, or an address family the one socket cannot reach), in which case nothing was started and no failure event will follow.

Implemented in librats::Node.


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