Class Endpoint

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< Endpoint >

Derived Types

Class Documentation

class Endpoint : public std::enable_shared_from_this<Endpoint>

Endpoint base class

Represents one network connection to the Router

One endpoint could map to several remote devices, e.g. mesh radio for swarm.

Subclassed by mavros::router::MAVConnEndpoint, mavros::router::ROSEndpoint

Public Types

enum class Type

Values:

enumerator fcu
enumerator gcs
enumerator uas

Public Functions

inline Endpoint()
virtual bool is_open() = 0
virtual std::pair<bool, std::string> open() = 0
virtual void close() = 0
virtual std::string diag_name()
virtual void diag_run(diagnostic_updater::DiagnosticStatusWrapper &stat) = 0

Public Members

std::shared_ptr<Router> parent
uint32_t id
std::string url
std::set<addr_t> remote_addrs
std::set<addr_t> stale_addrs