SOLA
Loading...
Searching...
No Matches
search_exact_failure.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef MINHTON_MESSAGE_SEARCH_EXACT_FAILURE_H_
8#define MINHTON_MESSAGE_SEARCH_EXACT_FAILURE_H_
9
10#include "minhton/message/message.h"
11#include "minhton/message/se_types.h"
12#include "solanet/serializer/serialize.h"
13
14namespace minhton {
18class MessageSearchExactFailure : public MinhtonMessage<MessageSearchExactFailure> {
19public:
26 std::shared_ptr<MessageSEVariant> query);
27
28 minhton::NodeInfo getDestinationNode() const;
29 std::shared_ptr<MessageSEVariant> getQuery() const;
30
31 SERIALIZE(header_, destination_node_, query_);
32
33 MessageSearchExactFailure() = default;
34
35private:
36 friend MinhtonMessage;
37
40
42 bool validateImpl() const;
43
46 minhton::NodeInfo destination_node_;
47
51 std::shared_ptr<MessageSEVariant> query_;
52};
53} // namespace minhton
54
55#endif
Usage: If a node cannot further forward a MessageSearchExact, but is also not the target node,...
Definition search_exact_failure.h:18
Definition message_header.h:24
Definition message.h:28
Definition node_info.h:24
Definition minhton_watchdog_ns3.cpp:24