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.
28 lines
503 B
C++
28 lines
503 B
C++
#ifndef LLARP_SERVICE_ADDRESS_HPP
|
|
#define LLARP_SERVICE_ADDRESS_HPP
|
|
#include <llarp/aligned.hpp>
|
|
#include <llarp/dht/key.hpp>
|
|
#include <string>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace service
|
|
{
|
|
struct Address : public llarp::AlignedBuffer< 32 >
|
|
{
|
|
std::string
|
|
ToString() const;
|
|
|
|
Address() : llarp::AlignedBuffer< 32 >()
|
|
{
|
|
}
|
|
|
|
Address(const byte_t* data) : llarp::AlignedBuffer< 32 >(data)
|
|
{
|
|
}
|
|
};
|
|
|
|
} // namespace service
|
|
} // namespace llarp
|
|
|
|
#endif |