mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-09 13:10:25 +00:00
a9b259985e
a path no longer exists.
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#ifndef LLARP_ROUTING_HANDLER_HPP
|
|
#define LLARP_ROUTING_HANDLER_HPP
|
|
|
|
#include <llarp/buffer.h>
|
|
#include <llarp/router.h>
|
|
#include <llarp/dht.hpp>
|
|
|
|
#include <llarp/messages/path_confirm.hpp>
|
|
#include <llarp/messages/path_latency.hpp>
|
|
|
|
#include <llarp/messages/path_transfer.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace routing
|
|
{
|
|
struct DataDiscardMessage;
|
|
|
|
// handles messages on the routing level
|
|
struct IMessageHandler
|
|
{
|
|
virtual bool
|
|
HandleDataDiscardMessage(const DataDiscardMessage *msg,
|
|
llarp_router *r) = 0;
|
|
|
|
virtual bool
|
|
HandlePathTransferMessage(const PathTransferMessage *msg,
|
|
llarp_router *r) = 0;
|
|
|
|
virtual bool
|
|
HandleHiddenServiceFrame(const service::ProtocolFrame *msg) = 0;
|
|
|
|
virtual bool
|
|
HandlePathConfirmMessage(const PathConfirmMessage *msg,
|
|
llarp_router *r) = 0;
|
|
|
|
virtual bool
|
|
HandlePathLatencyMessage(const PathLatencyMessage *msg,
|
|
llarp_router *r) = 0;
|
|
virtual bool
|
|
HandleDHTMessage(const llarp::dht::IMessage *msg, llarp_router *r) = 0;
|
|
};
|
|
} // namespace routing
|
|
} // namespace llarp
|
|
|
|
#endif
|