mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
497 B
C++
19 lines
497 B
C++
#pragma once
|
|
|
|
#include <llarp.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
/// HiveContext is a subclass of llarp::Context which allows RouterHive to
|
|
/// perform custom behavior which might be undesirable in production code.
|
|
struct HiveContext : public llarp::Context
|
|
{
|
|
std::unique_ptr<llarp::AbstractRouter>
|
|
makeRouter(
|
|
std::shared_ptr<llarp::thread::ThreadPool> worker,
|
|
llarp_ev_loop_ptr netloop,
|
|
std::shared_ptr<llarp::Logic> logic) override;
|
|
};
|
|
|
|
} // namespace tooling
|