2021-03-09 22:24:35 +00:00
|
|
|
#include <common.hpp>
|
|
|
|
#include <llarp/service/address.hpp>
|
2020-02-28 16:29:15 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace service
|
|
|
|
{
|
2020-03-07 01:20:11 +00:00
|
|
|
void
|
|
|
|
Address_Init(py::module& mod)
|
2020-02-28 16:29:15 +00:00
|
|
|
{
|
2020-04-07 18:38:56 +00:00
|
|
|
py::class_<Address>(mod, "ServiceAddress")
|
|
|
|
.def(py::init<std::string>())
|
|
|
|
.def("__str__", [](const Address& addr) -> std::string { return addr.ToString(); });
|
2020-02-28 16:29:15 +00:00
|
|
|
}
|
2020-03-07 01:20:11 +00:00
|
|
|
} // namespace service
|
2021-03-09 22:24:35 +00:00
|
|
|
} // namespace llarp
|