2020-06-17 21:42:22 +00:00
|
|
|
#include "common.hpp"
|
|
|
|
|
|
|
|
#include "router/abstractrouter.hpp"
|
2020-06-29 15:44:13 +00:00
|
|
|
#include "tooling/hive_router.hpp"
|
2020-06-17 21:42:22 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
void
|
|
|
|
AbstractRouter_Init(py::module& mod)
|
|
|
|
{
|
|
|
|
py::class_<AbstractRouter>(mod, "AbstractRouter")
|
|
|
|
.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)
|
|
|
|
{
|
2020-07-02 15:40:38 +00:00
|
|
|
py::class_<HiveRouter, llarp::AbstractRouter>(mod, "HiveRouter")
|
2020-06-29 15:44:13 +00:00
|
|
|
.def("disableGossiping", &HiveRouter::disableGossiping)
|
|
|
|
.def("enableGossiping", &HiveRouter::enableGossiping);
|
|
|
|
}
|
|
|
|
} // namespace tooling
|