mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
da22f306e0
* fix bug in iwp that caused crash
31 lines
712 B
C++
31 lines
712 B
C++
#ifndef LLARP_ROUTING_HANDLER_HPP
|
|
#define LLARP_ROUTING_HANDLER_HPP
|
|
|
|
#include <llarp/buffer.h>
|
|
#include <llarp/dht.hpp>
|
|
#include <llarp/messages/path_confirm.hpp>
|
|
#include <llarp/messages/path_latency.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace routing
|
|
{
|
|
// handles messages on owned paths
|
|
struct IMessageHandler
|
|
{
|
|
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 |