llarp::sys::I_SystemLayerManager

interface type for interacting with the os dependant system layer

#include <service_manager.hpp>

Inherited by llarp::sys::NOP_SystemLayerHandler

Public Functions

Name
virtual ~I_SystemLayerManager() =default
void disable()
disable all reporting to system layer
void give_context(llarp::Context * ctx)
give our current lokinet context to the system layer manager
virtual void system_changed_our_state(ServiceState st) =0
system told us to enter this state
virtual void report_changed_state() =0
report our current state to the system layer
virtual void report_periodic_stats()
report our stats on each timer tick
void starting()
void ready()
void stopping()
void stopped()
void failed()

Protected Functions

Name
virtual void we_changed_our_state(ServiceState st) =0
change our state and report it to the system layer

Protected Attributes

Name
bool m_disable
llarp::Context * m_Context

Public Functions Documentation

function ~I_SystemLayerManager

virtual ~I_SystemLayerManager() =default

function disable

inline void disable()

disable all reporting to system layer

function give_context

inline void give_context(
    llarp::Context * ctx
)

give our current lokinet context to the system layer manager

function system_changed_our_state

virtual void system_changed_our_state(
    ServiceState st
) =0

system told us to enter this state

Reimplemented by: llarp::sys::NOP_SystemLayerHandler::system_changed_our_state

function report_changed_state

virtual void report_changed_state() =0

report our current state to the system layer

Reimplemented by: llarp::sys::NOP_SystemLayerHandler::report_changed_state

function report_periodic_stats

inline virtual void report_periodic_stats()

report our stats on each timer tick

function starting

inline void starting()

function ready

inline void ready()

function stopping

inline void stopping()

function stopped

inline void stopped()

function failed

inline void failed()

Protected Functions Documentation

function we_changed_our_state

virtual void we_changed_our_state(
    ServiceState st
) =0

change our state and report it to the system layer

Reimplemented by: llarp::sys::NOP_SystemLayerHandler::we_changed_our_state

Protected Attributes Documentation

variable m_disable

bool m_disable {false};

variable m_Context

llarp::Context * m_Context {nullptr};

Updated on 2026-01-10 at 22:49:45 +0000