2021-03-09 22:24:35 +00:00
|
|
|
#include <common.hpp>
|
2020-06-17 21:42:22 +00:00
|
|
|
|
2021-03-09 22:24:35 +00:00
|
|
|
#include <llarp/router/abstractrouter.hpp>
|
|
|
|
#include <llarp/tooling/hive_router.hpp>
|
2020-06-17 21:42:22 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
void
|
|
|
|
AbstractRouter_Init(py::module& mod)
|
|
|
|
{
|
2021-03-02 22:49:25 +00:00
|
|
|
py::class_<AbstractRouter, std::shared_ptr<AbstractRouter>>(mod, "AbstractRouter")
|
2020-06-17 21:42:22 +00:00
|
|
|
.def("rc", &AbstractRouter::rc)
|
|
|
|
.def("Stop", &AbstractRouter::Stop)
|
2020-06-25 17:46:31 +00:00
|
|
|
.def("peerDb", &AbstractRouter::peerDb);
|
2020-06-17 21:42:22 +00:00
|
|
|
}
|
2020-06-29 15:44:13 +00:00
|
|
|
|
2020-06-17 21:42:22 +00:00
|
|
|
} // namespace llarp
|
2020-06-29 15:44:13 +00:00
|
|
|
|
|
|
|
namespace tooling
|
|
|
|
{
|
|
|
|
void
|
|
|
|
HiveRouter_Init(py::module& mod)
|
|
|
|
{
|
2021-03-02 22:49:25 +00:00
|
|
|
py::class_<HiveRouter, llarp::AbstractRouter, std::shared_ptr<HiveRouter>>(mod, "HiveRouter")
|
2020-06-29 15:44:13 +00:00
|
|
|
.def("disableGossiping", &HiveRouter::disableGossiping)
|
|
|
|
.def("enableGossiping", &HiveRouter::enableGossiping);
|
|
|
|
}
|
|
|
|
} // namespace tooling
|