mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
18 lines
408 B
C++
18 lines
408 B
C++
#include "common.hpp"
|
|
#include "service/address.hpp"
|
|
|
|
namespace llarp
|
|
{
|
|
namespace service
|
|
{
|
|
void
|
|
Address_Init(py::module& mod)
|
|
{
|
|
py::class_< Address >(mod, "ServiceAddress")
|
|
.def(py::init< std::string >())
|
|
.def("__str__", [](const Address& addr) -> std::string {
|
|
return addr.ToString();
|
|
});
|
|
}
|
|
} // namespace service
|
|
} // namespace llarp
|