mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
7caa87862e
All #ifndef guards on headers have been removed, I think, in favor of #pragma once Headers are now included as `#include "filename"` if the included file resides in the same directory as the file including it, or any subdirectory therein. Otherwise they are included as `#include <project/top/dir/relative/path/filename>` The above does not include system/os headers.
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <llarp/service/endpoint.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace handlers
|
|
{
|
|
struct NullEndpoint final : public llarp::service::Endpoint,
|
|
public std::enable_shared_from_this<NullEndpoint>
|
|
{
|
|
NullEndpoint(AbstractRouter* r, llarp::service::Context* parent)
|
|
: llarp::service::Endpoint(r, parent)
|
|
{}
|
|
|
|
virtual bool
|
|
HandleInboundPacket(
|
|
const service::ConvoTag, const llarp_buffer_t&, service::ProtocolType, uint64_t) override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
std::string
|
|
GetIfName() const override
|
|
{
|
|
return "";
|
|
}
|
|
|
|
path::PathSet_ptr
|
|
GetSelf() override
|
|
{
|
|
return shared_from_this();
|
|
}
|
|
|
|
bool
|
|
SupportsV6() const override
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void
|
|
SendPacketToRemote(const llarp_buffer_t&) override{};
|
|
|
|
huint128_t
|
|
ObtainIPForAddr(const AlignedBuffer<32>&, bool) override
|
|
{
|
|
return {0};
|
|
}
|
|
};
|
|
} // namespace handlers
|
|
} // namespace llarp
|