lokinet/include/llarp/routing/handler.hpp

31 lines
712 B
C++
Raw Normal View History

#ifndef LLARP_ROUTING_HANDLER_HPP
#define LLARP_ROUTING_HANDLER_HPP
2018-06-23 00:00:44 +00:00
#include <llarp/buffer.h>
#include <llarp/dht.hpp>
#include <llarp/messages/path_confirm.hpp>
#include <llarp/messages/path_latency.hpp>
2018-06-23 00:00:44 +00:00
namespace llarp
{
namespace routing
{
2018-06-23 00:00:44 +00:00
// handles messages on owned paths
struct IMessageHandler
{
2018-06-23 00:00:44 +00:00
virtual bool
HandleHiddenServiceData(llarp_buffer_t buf) = 0;
virtual bool
HandlePathConfirmMessage(const PathConfirmMessage* msg) = 0;
virtual bool
HandlePathLatencyMessage(const PathLatencyMessage* msg) = 0;
virtual bool
HandleDHTMessage(const llarp::dht::IMessage* msg) = 0;
};
} // namespace routing
} // namespace llarp
#endif