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.
29 lines
743 B
C++
29 lines
743 B
C++
#include <common.hpp>
|
|
|
|
#include <llarp/router/abstractrouter.hpp>
|
|
#include <llarp/tooling/hive_router.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
void
|
|
AbstractRouter_Init(py::module& mod)
|
|
{
|
|
py::class_<AbstractRouter, std::shared_ptr<AbstractRouter>>(mod, "AbstractRouter")
|
|
.def("rc", &AbstractRouter::rc)
|
|
.def("Stop", &AbstractRouter::Stop)
|
|
.def("peerDb", &AbstractRouter::peerDb);
|
|
}
|
|
|
|
} // namespace llarp
|
|
|
|
namespace tooling
|
|
{
|
|
void
|
|
HiveRouter_Init(py::module& mod)
|
|
{
|
|
py::class_<HiveRouter, llarp::AbstractRouter, std::shared_ptr<HiveRouter>>(mod, "HiveRouter")
|
|
.def("disableGossiping", &HiveRouter::disableGossiping)
|
|
.def("enableGossiping", &HiveRouter::enableGossiping);
|
|
}
|
|
} // namespace tooling
|