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.
lokinet/include/llarp/service/endpoint.hpp

30 lines
598 B
C++

6 years ago
#ifndef LLARP_SERVICE_ENDPOINT_HPP
#define LLARP_SERVICE_ENDPOINT_HPP
#include <llarp/pathbuilder.hpp>
#include <llarp/service/Identity.hpp>
namespace llarp
{
namespace service
{
struct Endpoint
{
Endpoint(const std::string& nickname, llarp_router* r);
~Endpoint();
bool
SetOption(const std::string& k, const std::string& v);
bool
Start();
private:
llarp_router* m_Router;
llarp_pathbuilder_context* m_PathSet;
std::string m_Keyfile;
Identity m_Identity;
};
} // namespace service
} // namespace llarp
#endif