mirror of https://github.com/oxen-io/lokinet
* fix dht feedback loop
* start on dht lookups for hidden services * make debug logging confurable on runtime with env var LLARP_DEBUG=1 * make eventloop tick only when we get traffic * make testnet parameters configurable on runtimepull/5/head
parent
bae4f746be
commit
fe01c38d8e
@ -1,17 +1,28 @@
|
||||
#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
|
||||
{
|
||||
typedef llarp::AlignedBuffer< 32 > Address;
|
||||
struct Address : public llarp::AlignedBuffer< 32 >
|
||||
{
|
||||
std::string
|
||||
ToString() const;
|
||||
|
||||
std::string
|
||||
AddressToString(const Address& addr);
|
||||
}
|
||||
}
|
||||
Address() : llarp::AlignedBuffer< 32 >()
|
||||
{
|
||||
}
|
||||
|
||||
Address(const byte_t* data) : llarp::AlignedBuffer< 32 >(data)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace service
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue