mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
273270916e
This commit reflects changes to clang-format rules. Unfortunately, these rule changes create a massive change to the codebase, which causes an apparent rewrite of git history. Git blame's --ignore-rev flag can be used to ignore this commit when attempting to `git blame` some code.
41 lines
883 B
C++
41 lines
883 B
C++
#ifndef LLARP_HANDLERS_NULL_HPP
|
|
#define LLARP_HANDLERS_NULL_HPP
|
|
|
|
#include <service/endpoint.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace handlers
|
|
{
|
|
struct NullEndpoint final : public llarp::service::Endpoint,
|
|
public std::enable_shared_from_this<NullEndpoint>
|
|
{
|
|
NullEndpoint(const std::string& name, AbstractRouter* r, llarp::service::Context* parent)
|
|
: llarp::service::Endpoint(name, r, parent)
|
|
{
|
|
}
|
|
|
|
virtual bool
|
|
HandleInboundPacket(
|
|
const service::ConvoTag, const llarp_buffer_t&, service::ProtocolType) override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
path::PathSet_ptr
|
|
GetSelf() override
|
|
{
|
|
return shared_from_this();
|
|
}
|
|
|
|
bool
|
|
SupportsV6() const override
|
|
{
|
|
return false;
|
|
}
|
|
};
|
|
} // namespace handlers
|
|
} // namespace llarp
|
|
|
|
#endif
|